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,17 @@
class C {
void foo() {
if (a) {
if (b) {
call();
} // foo
else if (c) {
otherCall();
} // bar
else {
thirdCall();
} // baz
} else {
fourthCall();
} // qux
}
}