mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
dfa: report constant xor conditions only for the last operator in polyadic (IDEA-141853)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user