StreamToLoopInspection: preserve comments; CommentTracker: now possible to delete element first and only after that register unchanged parts.

This commit is contained in:
Tagir Valeev
2016-12-23 18:09:43 +07:00
parent cd45987619
commit c9c574e428
20 changed files with 131 additions and 112 deletions
@@ -5,9 +5,10 @@ import java.util.function.LongSupplier;
public class Main {
private static void test(List<String> list) {
// and filter!
long count1 = 0;
for (String s : list) {
if (!s.isEmpty()) {
if (!s/* comment */.isEmpty()) {
count1++;
}
}