mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 15:50:53 +07:00
[extract method] IDEA-251837 fix texts GitOrigin-RevId: 37da2e7e8f83a4d85a87c644788a66ce6ea1e05f
36 lines
563 B
Java
36 lines
563 B
Java
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
class X {
|
|
@NotNull
|
|
public X fun1(int x) {
|
|
return this;
|
|
}
|
|
|
|
public X fun2(boolean b) {
|
|
|
|
X x1 = newMethod(b);
|
|
if (x1 != null) return x1;
|
|
|
|
int x = 0;
|
|
return null;
|
|
}
|
|
|
|
private @Nullable X newMethod(boolean b) {
|
|
if (b) {
|
|
int x = 1;
|
|
return fun1(x);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
|
|
void foo(int i, int j) {
|
|
bar(i, j);
|
|
}
|
|
|
|
private void bar(int i, int j) {
|
|
|
|
}
|
|
}
|