a consistent dfa treatment for plain fields assuming single-threaded context (IDEA-92380)

This commit is contained in:
peter
2013-02-03 22:42:56 +01:00
parent 4587183209
commit b418e60060
6 changed files with 10 additions and 10 deletions
@@ -32,11 +32,11 @@ class Foo {
System.out.println(data.hashCode());
}
void dontWarnWhenDoubleChecked(Foo f) {
void warnWhenDoubleChecked(Foo f) {
if (f.data == null) {
return;
}
if (f.data == null) {
if (<warning descr="Condition 'f.data == null' is always 'false'">f.data == null</warning>) {
return;
}
System.out.println(f.data.hashCode());
@@ -53,7 +53,7 @@ class Foo {
}
System.out.println(data.hashCode());
}
void dontWarnWhenDoubleChecked_This_WithMethodCall() {
if (data == null) {
return;