mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
method call should always flush fields (IDEA-93168)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user