method call should always flush fields (IDEA-93168)

This commit is contained in:
peter
2012-11-08 12:02:46 +01:00
parent dae16b944a
commit 38f38923bd
7 changed files with 27 additions and 23 deletions
@@ -0,0 +1,21 @@
import org.jetbrains.annotations.Nullable;
class Fun {
@Nullable
private Object foo;
public Fun() {
foo = new Object();
makeMagic();
if (null == foo) {
System.out.println("hello");
}
}
private void makeMagic() {
foo = null;
}
}