mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
dfa: highlight just method reference name on possible NPE warnings (IDEA-149904)
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ class Doo {
|
||||
|
||||
void foo(@Nullable String s) {
|
||||
if (isMaybeNotNull(s)) {
|
||||
System.out.println(<warning descr="Method invocation 's.length()' may produce 'java.lang.NullPointerException'">s.length()</warning>);
|
||||
System.out.println(s.<warning descr="Method invocation 'length' may produce 'java.lang.NullPointerException'">length</warning>());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user