mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-28 04:37:32 +07:00
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:
+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(names::add);
|
||||
persons.stream().map(Person::getName).forEach(item -> names.add(item));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user