IDEA-74934 "Constant conditions & exceptions": take type parameters into consideration, take 2 (fields)

This commit is contained in:
peter
2012-10-29 12:57:24 +01:00
parent 1947c62972
commit 8254d36493
5 changed files with 15 additions and 11 deletions
@@ -18,10 +18,10 @@ class Test {
}
private static void test3(Ref<@NotNull Object> ref) {
if (ref.value == null) {
if (<warning descr="Condition 'ref.value == null' is always 'false'">ref.value == null</warning>) {
return;
}
ref.value = null;
ref.value = <warning descr="'null' is assigned to a variable that is annotated with @NotNull">null</warning>;
}