IDEA-CR-13640 Suggest variable name based on type

This commit is contained in:
Tagir Valeev
2016-09-13 11:35:14 +07:00
parent 634f0a238d
commit 9540aeb8c2
2 changed files with 5 additions and 5 deletions
@@ -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));
}
}