mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
CommentTracker#replaceAndRestoreComments: try to keep comments after the statement (not move them to the front)
This commit is contained in:
+1
-2
@@ -4,9 +4,8 @@ class A {
|
||||
public void foo() {
|
||||
String value ="not-null";
|
||||
|
||||
// Another comment
|
||||
if (value == null) {
|
||||
return;
|
||||
return; // Another comment
|
||||
}
|
||||
System.out.println(value);
|
||||
// Comment gets deleted.
|
||||
|
||||
Reference in New Issue
Block a user