Ignore:
Timestamp:
2017-09-26T02:25:00+02:00 (2 years ago)
Author:
Don-vip
Message:

SonarQube - squid:S1612 - Lambdas should be replaced with method references

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/tagging/ac/AutoCompletionSet.java

    r12859 r12901  
    33
    44import java.util.Collection;
     5import java.util.Objects;
    56import java.util.Optional;
    67import java.util.TreeSet;
     
    4748     */
    4849    public boolean addAll(Collection<String> values, AutoCompletionPriority priority) {
    49         return addAll(values.stream().filter(v -> v != null).map(v -> new AutoCompletionItem(v, priority)).collect(Collectors.toList()));
     50        return addAll(values.stream().filter(Objects::nonNull).map(v -> new AutoCompletionItem(v, priority)).collect(Collectors.toList()));
    5051    }
    5152
Note: See TracChangeset for help on using the changeset viewer.