mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 06:11:42 +07:00
a consistent dfa treatment for plain fields assuming single-threaded context (IDEA-92380)
This commit is contained in:
+3
-3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user