mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
InvertIfConditionAction: preserve comments after last statement
Fixes IDEA-153371 invert 'if' condition deletes comment lines
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// "Invert 'if' condition" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
String value ="not-null";
|
||||
|
||||
<caret>if (value != null) {
|
||||
/* block*/
|
||||
// Before
|
||||
System.out.println(value);
|
||||
/* inside */
|
||||
System.out.println(value);
|
||||
// After
|
||||
/* end block*/
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user