IDEA-151523 Method reference is not created unconditionally now (for complex qualifier or non-final field it could be incorrect)

This commit is contained in:
Tagir Valeev
2016-09-09 13:58:56 +07:00
parent 98409f602a
commit 610a2a914b
2 changed files with 23 additions and 2 deletions
@@ -10,6 +10,6 @@ public class Collect {
Set<String> names = new HashSet<>();
void collectNames(List<Person> persons){
persons.stream().map(Person::getName).forEach(names::add);
persons.stream().map(Person::getName).forEach(item -> names.add(item));
}
}