mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
StreamApiMigration: register comments from post-loop operations like sorting
This commit is contained in:
+2
-1
@@ -10,6 +10,7 @@ public class Collect {
|
||||
}
|
||||
|
||||
void collectNames(List<Person> persons){
|
||||
List<String> names = persons.stream().map(Person::getName).sorted(Comparator.comparing(Person::getName)).collect(Collectors.toList());
|
||||
List<String> names = persons.stream().map(Person::getName).sorted(Comparator.comparing(/*c2*/Person::getName)).collect(Collectors.toList());
|
||||
// comment
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -13,6 +13,7 @@ public class Collect {
|
||||
for (Person person : pers<caret>ons) {
|
||||
names.add(person.getName());
|
||||
}
|
||||
Collections.sort(names, Comparator.comparing(Person::getName));
|
||||
Collections.// comment
|
||||
sort(names, Comparator.comparing(/*c2*/Person::getName));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user