CommentTracker#replaceAndRestoreComments: try to keep comments after the statement (not move them to the front)

This commit is contained in:
Tagir Valeev
2018-10-08 14:09:24 +07:00
parent bb5f074e2c
commit c09250da45
21 changed files with 59 additions and 43 deletions
@@ -4,7 +4,6 @@ class B {
for (int i = 0; i < 10; i++) {
if (i % 2 == 0) {
if (i != 0) {
System.out.println("!= 0");
continue;
}
@@ -12,6 +11,7 @@ class B {
System.out.println("== 0");
continue;
}
}
System.out.println("i = " + i);