mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +07:00
IDEA-CR-13640 Suggest variable name based on type
This commit is contained in:
+1
-1
@@ -10,6 +10,6 @@ public class Collect {
|
||||
|
||||
Set<String> names = new HashSet<>();
|
||||
void collectNames(List<Person> persons){
|
||||
persons.stream().map(Person::getName).forEach(item -> names.add(item));
|
||||
persons.stream().map(Person::getName).forEach(s -> names.add(s));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user