mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
dfa: don't forget variable instanceof info when merging states
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
class Some {
|
||||
void foo() {
|
||||
Object o = null;
|
||||
while (equals(3)) {
|
||||
if (equals(2)) {
|
||||
if (o == null) {
|
||||
o = new String();
|
||||
}
|
||||
}
|
||||
if (<warning descr="Condition 'o == null || o instanceof String' is always 'true'">o == null || <warning descr="Condition 'o instanceof String' is always 'true' when reached">o instanceof String</warning></warning>) {
|
||||
System.out.println(o);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user