mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
IDEA-74934 "Constant conditions & exceptions": take type parameters into consideration, take 2 (fields)
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user