Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/DontLoseInequalityInformation.java
T
peter 8bca4a68df dfa: combine merge by equality and type into a generic relation-based merge
this improves dfa performance
and fixes cases when a single global != relation would prevent states from merging
2013-12-18 10:42:48 +01:00

14 lines
292 B
Java

class Some {
public static void main(int i) {
if (i != 0) {
if (i == 1 || i == 2 || i == 3) {
System.out.println("hello");
}
if (<warning descr="Condition 'i == 0' is always 'false'">i == 0</warning>) {
System.out.println("wat?");
}
}
}
}