mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-17 11:40:50 +07:00
26 lines
342 B
Java
26 lines
342 B
Java
class Ref {
|
|
int i;
|
|
Object obj;
|
|
}
|
|
|
|
class Modifier {
|
|
void foo(Ref r) { r.i = 239; r.obj = null; }
|
|
}
|
|
|
|
class Test {
|
|
void foo(Ref r, Modifier m) {
|
|
if (r.i == 0) {
|
|
m.foo(r);
|
|
if (r.i == 0) {
|
|
return;
|
|
}
|
|
}
|
|
if (r.obj == null) {
|
|
m.foo(r);
|
|
if (r.obj == null) {
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
} |