mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
24 lines
411 B
Java
24 lines
411 B
Java
public class EffectivelyLocalWithinExpression {
|
|
void foo() {
|
|
int n;
|
|
if (newMethod(0)) {
|
|
System.out.println();
|
|
}
|
|
}
|
|
|
|
private boolean newMethod(int i) {
|
|
int n;
|
|
return (n = z()) > i && n < 100;
|
|
}
|
|
|
|
void bar() {
|
|
int n;
|
|
if (newMethod(1)) {
|
|
System.out.println();
|
|
}
|
|
}
|
|
|
|
int z() {
|
|
return 1;
|
|
}
|
|
} |