dfa: highlight just method reference name on possible NPE warnings (IDEA-149904)

This commit is contained in:
peter
2016-01-20 16:47:53 +01:00
parent 3f53a3541e
commit b3c40ee773
41 changed files with 69 additions and 66 deletions
@@ -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());
}