mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
[extract method] fork tests
GitOrigin-RevId: 3aae5c738d48c38144f6a78c36738121831ae5a5
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2f3882a96f
commit
0e860160e5
@@ -0,0 +1,30 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
class X {
|
||||
@NotNull
|
||||
public X fun1(int x) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public X fun2(boolean b) {
|
||||
|
||||
<selection>if (b) {
|
||||
int x = 1;
|
||||
return fun1(x);
|
||||
}</selection>
|
||||
|
||||
int x = 0;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void foo(int i, int j) {
|
||||
bar(i, j);
|
||||
}
|
||||
|
||||
private void bar(int i, int j) {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user