mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
dfa: method can still return unknown value if its arguments satisfy nullity conditions (IDEA-106205)
This commit is contained in:
@@ -4,6 +4,13 @@ public class IsNotNullCheck {
|
||||
if (Value.isNotNull(v)) {
|
||||
if(<warning descr="Condition 'v == null' is always 'false'">v == null</warning>) {}
|
||||
}
|
||||
}
|
||||
void bar2() {
|
||||
final Value v = call();
|
||||
System.out.println(v.hashCode());
|
||||
if (Value.isNotNull(v)) {
|
||||
|
||||
}
|
||||
}
|
||||
Value call() {return new Value();}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user