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

12 lines
270 B
Java

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