Files
Tagir Valeev 107adb48ab LiveVariablesAnalyzer: flush on &&/|| chains + minor bug fixes
Fixes IDEA-204984 Inspect Code hangs for single java file
2019-01-10 12:24:20 +07:00

15 lines
471 B
Java

class Contracts {
void test(boolean b, boolean c) {
boolean x = false;
<warning descr="Condition 'x' at the left side of assignment expression is always 'false'. Can be simplified">x</warning> |= b && c;
System.out.println(x);
}
private boolean method(boolean a) {
boolean b = true;
<warning descr="Condition 'b' at the left side of assignment expression is always 'true'. Can be simplified"><caret>b</warning> |= a;
return b;
}
}