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
@@ -29,7 +29,7 @@ class Main {
}
@NotNull
private Object test7(@NotNull Object defVal, @Nullable final Object val) {
if (<warning descr="Method invocation 'val.equals(defVal)' may produce 'java.lang.NullPointerException'">val.equals(defVal)</warning>) {
if (val.<warning descr="Method invocation 'equals' may produce 'java.lang.NullPointerException'">equals</warning>(defVal)) {
return defVal;
}
return defVal;