Files
openide/java/java-tests/testData/codeInsight/invertIfCondition/afterConditionWithComments.java
Tagir Valeev e7d2193a56 InvertIfConditionAction: preserve comments after last statement
Fixes IDEA-153371 invert 'if' condition deletes comment lines
2017-09-29 15:20:51 +07:00

17 lines
337 B
Java

// "Invert 'if' condition" "true"
class A {
public void foo() {
String value ="not-null";
if (value == null) {
return;
}
/* block*/
// Before
System.out.println(value);
/* inside */
System.out.println(value);
// After
/* end block*/
}
}