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
@@ -5,10 +5,9 @@ import java.util.Collection;
|
||||
|
||||
public class Test {
|
||||
void test(int[] arr) {
|
||||
// comment
|
||||
Arrays.stream(arr).forEach(x -> {
|
||||
int y = x * 2;
|
||||
if (x > y) return;
|
||||
if (x > y) return; // comment
|
||||
System.out.println(x);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user