Changeset 12901 in josm for trunk/src/org/openstreetmap/josm/data/tagging
- Timestamp:
- 2017-09-26T02:25:00+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/tagging/ac/AutoCompletionSet.java
r12859 r12901 3 3 4 4 import java.util.Collection; 5 import java.util.Objects; 5 6 import java.util.Optional; 6 7 import java.util.TreeSet; … … 47 48 */ 48 49 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())); 50 51 } 51 52
Note:
See TracChangeset
for help on using the changeset viewer.