mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
IDEA-94181 Boolean truth inference
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user