mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
dfa: highlight just method reference name on possible NPE warnings (IDEA-149904)
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@ class Foo {
|
||||
if (data != null) {
|
||||
return;
|
||||
}
|
||||
System.out.println(<warning descr="Method invocation 'data.hashCode()' may produce 'java.lang.NullPointerException'">data.hashCode()</warning>);
|
||||
System.out.println(data.<warning descr="Method invocation 'hashCode' may produce 'java.lang.NullPointerException'">hashCode</warning>());
|
||||
System.out.println(data.hashCode());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user