IDEA-135846 Dfa should warn about qualifiers in method references

This commit is contained in:
peter
2015-02-02 12:42:56 +01:00
parent 9c3cd4bd49
commit cd02f59555
3 changed files with 35 additions and 0 deletions
@@ -0,0 +1,18 @@
import org.jetbrains.annotations.Nullable;
class BrokenAlignment {
{
Runnable t = <warning descr="Dereference of 'getString()' may produce 'java.lang.NullPointerException'">getString()</warning>::length;
Runnable t2 = BrokenAlignment::getStringStatic;
}
@Nullable
private String getString() {
return null;
}
@Nullable
private static String getStringStatic() {
return null;
}
}