mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
IDEA-135846 Dfa should warn about qualifiers in method references
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user