Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/CanBeNullDoesntImplyIsNull.java
T
2012-03-15 19:13:32 +04:00

15 lines
319 B
Java

import org.jetbrains.annotations.Nullable;
public class DDD {
int test(boolean t) {
if (t && <warning descr="Dereference of 'fff()' may produce 'java.lang.NullPointerException'">fff()</warning>.length == 1) {
return 0;
}
return 1;
}
public @Nullable DDD[] fff() {
return new DDD[8];
}
}