preserve comments on invert if (IDEA-159847)

This commit is contained in:
Anna Kozlova
2016-08-15 21:36:41 +03:00
parent 1d7e2f6389
commit b2b09c29ee
3 changed files with 22 additions and 3 deletions
@@ -0,0 +1,9 @@
// "Invert 'if' condition" "true"
class A {
public void foo() {
if (!c) {
return;
} //comments to restore
a();
}
}
@@ -0,0 +1,8 @@
// "Invert 'if' condition" "true"
class A {
public void foo() {
<caret>if (c) { //comments to restore
a();
}
}
}