mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
InvertIfConditionAction: preserve comments after last statement
Fixes IDEA-153371 invert 'if' condition deletes comment lines
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// "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.
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user