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,9 @@
import org.jetbrains.annotations.Nullable;
public class DDD {
@Nullable
String field;
int test() {
return <warning descr="Method invocation 'new DDD().field.hashCode()' may produce 'java.lang.NullPointerException'">new DDD().field.hashCode()</warning>;
}
}