Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/DontMakeUnrelatedVariableFalseWhenMerging.java
T
peter d255c5b10c dfa: make state merging result predictable
when removing a!=b and a!=c && b==c, don't restore a!=c
2013-12-18 14:42:54 +01:00

27 lines
316 B
Java

import org.jetbrains.annotations.Nullable;
import java.io.File;
class Some {
void foo(String[] args) {
boolean b = false;
if (hashCode() == 2) {
b = new File("a").exists();
}
boolean b2 = hashCode() == 4;
if (!b2) {
return;
}
if (b) {
}
if (b) {
}
}
}