IDEA-77484 + tests

This commit is contained in:
Maxim Shafirov
2012-03-15 19:13:32 +04:00
parent b0ec6b4c4a
commit f4e9d475a3
4 changed files with 34 additions and 2 deletions
@@ -0,0 +1,14 @@
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];
}
}