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