Files
openide/java/java-tests/testData/codeInsight/splitIfAction/beforeCommentBeforeElse2.java
Tagir Valeev 1c84c9bef2 IDEA-219189 "Split into 2 if's" generates redundant 'else if' clause
GitOrigin-RevId: 0218fd86bb09eea638be20dd96bd248ce498a399
2019-08-05 04:02:41 +03:00

16 lines
321 B
Java

class C {
void foo(boolean a, boolean b, boolean c) {
if (a &<caret>& b) {
call();
} // foo
else if (a && c) {
otherCall();
} // bar
else if(a) {
thirdCall();
} // baz
else {
fourthCall();
} // qux
}
}