mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
14 lines
225 B
Java
14 lines
225 B
Java
// "Extract side effects" "true-preview"
|
|
class Test {
|
|
void test(int x) {
|
|
if(x > 0)
|
|
i<caret>f(!foo(x, 1) ^ foo(x, 2)) {
|
|
|
|
}
|
|
}
|
|
|
|
boolean foo(int x, int y) {
|
|
System.out.println(x);
|
|
return x > y;
|
|
}
|
|
} |