mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
19 lines
356 B
Java
19 lines
356 B
Java
public class EffectivelyLocalWithinExpression {
|
|
void foo() {
|
|
int n;
|
|
if (<selection>(n = z()) > 0 && n < 100</selection>) {
|
|
System.out.println();
|
|
}
|
|
}
|
|
|
|
void bar() {
|
|
int n;
|
|
if ((n = z()) > 1 && n < 100) {
|
|
System.out.println();
|
|
}
|
|
}
|
|
|
|
int z() {
|
|
return 1;
|
|
}
|
|
} |