mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 08:45:34 +07:00
dfa: avoid false positives when method calls change state (IDEA-107604)
This commit is contained in:
+2
-2
@@ -54,12 +54,12 @@ class Foo {
|
||||
System.out.println(data.hashCode());
|
||||
}
|
||||
|
||||
void warnWhenDoubleChecked_This_WithMethodCall() {
|
||||
void doNotWarnWhenDoubleChecked_This_WithMethodCall() {
|
||||
if (data == null) {
|
||||
return;
|
||||
}
|
||||
System.out.println(data.hashCode());
|
||||
if (<warning descr="Condition 'data == null' is always 'false'">data == null</warning>) {
|
||||
if (data == null) {
|
||||
return;
|
||||
}
|
||||
System.out.println(data.hashCode());
|
||||
|
||||
Reference in New Issue
Block a user