dfa: report constant xor conditions only for the last operator in polyadic (IDEA-141853)

This commit is contained in:
peter
2015-06-24 18:37:44 +02:00
parent ccd1853181
commit b4a9a53ec7
3 changed files with 13 additions and 1 deletions
@@ -0,0 +1,11 @@
import java.util.List;
class Some {
public static void main(String[] args) {
boolean x = true, y = true, z = true, t = true;
boolean r = <warning descr="Condition 'x ^ y ^ z ^ t' is always 'false'">x ^ y ^ z ^ t</warning>;
System.out.println("r: " + r);
}
}