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
@@ -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() : "";
}
}
@@ -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();
}
}
@@ -2,6 +2,6 @@
class A {
void foo(){
String i = null;
<caret>i.hashCode();
i.has<caret>hCode();
}
}