mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-05 00:36:13 +07:00
GitOrigin-RevId: 6b6405ee4491ad1d58947547c40df6fb2d291ab7
16 lines
360 B
Java
16 lines
360 B
Java
// "Extract if (a)" "true-preview"
|
|
class Test {
|
|
void f(boolean a, boolean b, boolean c, boolean d){
|
|
if (<caret>a && b)
|
|
System.out.println("a&b");//first comment
|
|
else if (a && c) {
|
|
System.out.println("a&c");//ac
|
|
}
|
|
else if (a) {
|
|
System.out.println("a");//a
|
|
}
|
|
else if (d) {
|
|
System.out.println("d");//d
|
|
}
|
|
}
|
|
} |