split if: ensure condition operands comparison stops at first non-equivalent sub condition (IDEA-196560)

This commit is contained in:
Anna.Kozlova
2018-08-01 11:52:03 +02:00
parent fbb178fb85
commit 7001ac6394
4 changed files with 27 additions and 1 deletions
@@ -0,0 +1,10 @@
class C {
void foo(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f) {
if (a && b &<caret>& c) {
System.out.println("1");
}
else if (d && e && f) {
System.out.println("2");
}
}
}