IDEA-94181 Boolean truth inference

This commit is contained in:
peter
2012-11-09 13:36:01 +01:00
parent d6d0cc0753
commit 501bac130e
4 changed files with 28 additions and 6 deletions
@@ -0,0 +1,14 @@
class Fun {
private void parseDeclarator(Object builder, boolean isTuple) {
if (!isTuple) {
return;
}
else {
if (smth() && <warning descr="Condition 'isTuple' is always 'true' when reached">isTuple</warning>) {
System.out.println();
}
}
}
boolean smth() { return true; }
}