mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 07:40:42 +07:00
CommentTracker#replaceAndRestoreComments: try to keep comments after the statement (not move them to the front)
This commit is contained in:
@@ -2,8 +2,7 @@ import java.io.*;
|
||||
|
||||
class C {
|
||||
void m(File file) throws IOException {
|
||||
//comment after expr
|
||||
try (FileInputStream fileInputStream = new FileInputStream(file)) {
|
||||
}
|
||||
}//comment after expr
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,6 @@ import java.util.Arrays;
|
||||
|
||||
class C {
|
||||
void m(File file) throws IOException {
|
||||
//comment
|
||||
int len;
|
||||
boolean empty;
|
||||
try (FileInputStream fileInputStream = new FileInputStream(file)) {
|
||||
@@ -20,7 +19,7 @@ class C {
|
||||
empty = false;
|
||||
}
|
||||
while (read != -1);
|
||||
}
|
||||
}//comment
|
||||
System.out.println(len);
|
||||
System.out.println(empty);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user