mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
dfa: highlight just method reference name on possible NPE warnings (IDEA-149904)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user