Files
openide/java/java-tests/testData/codeInsight/invertIfCondition/afterConditionWithComment.java

13 lines
275 B
Java

// "Invert 'if' condition" "true"
class A {
// IDEA-153371
public void foo() {
String value ="not-null";
if (value == null) {
return; // Another comment
}
System.out.println(value);
// Comment gets deleted.
}
}