mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
let method calls on other instances not affect our fields (IDEA-92380)
This commit is contained in:
+2
-2
@@ -56,12 +56,12 @@ class Foo {
|
||||
System.out.println(data.hashCode());
|
||||
}
|
||||
|
||||
void dontWarnWhenDoubleChecked_This_WithMethodCall() {
|
||||
void warnWhenDoubleChecked_This_WithMethodCall() {
|
||||
if (data == null) {
|
||||
return;
|
||||
}
|
||||
System.out.println(data.hashCode());
|
||||
if (data == null) {
|
||||
if (<warning descr="Condition 'data == null' is always 'false'">data == null</warning>) {
|
||||
return;
|
||||
}
|
||||
System.out.println(data.hashCode());
|
||||
|
||||
Reference in New Issue
Block a user