dfa: method can still return unknown value if its arguments satisfy nullity conditions (IDEA-106205)

This commit is contained in:
peter
2013-05-06 19:07:56 +02:00
parent e6665d77c1
commit 61fcaa5361
2 changed files with 18 additions and 0 deletions
@@ -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();}
}