SplitConditionUtil#createAndAnd: fix corner cases with ending line comment

Review ID: IDEA-CR-31527
This commit is contained in:
Tagir Valeev
2018-04-12 10:49:13 +07:00
parent 0092b7b123
commit f805fa2840
6 changed files with 61 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
class C {
void foo() {
if (a &<caret>& b) {
call();
} // foo
else if (a && c) {
otherCall();
} // bar
else if(a) {
thirdCall();
} // baz
else {
fourthCall();
} // qux
}
}