mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
dfa: highlight just method reference name on possible NPE warnings (IDEA-149904)
This commit is contained in:
+1
-1
@@ -2,6 +2,6 @@
|
||||
class A{
|
||||
void test(){
|
||||
Object container = null;
|
||||
Runnable r = () -> container == null ? conta<caret>iner.toString() : "";
|
||||
Runnable r = () -> container == null ? container.toS<caret>tring() : "";
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -5,6 +5,6 @@ import java.lang.Integer;
|
||||
class A{
|
||||
void test(){
|
||||
Integer integer = null;
|
||||
int i = in<caret>teger.intValue();
|
||||
int i = integer.int<caret>Value();
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,6 +2,6 @@
|
||||
class A {
|
||||
void foo(){
|
||||
String i = null;
|
||||
<caret>i.hashCode();
|
||||
i.has<caret>hCode();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user