Ignore:
Timestamp:
2020-05-17T14:18:22+02:00 (4 years ago)
Author:
simon04
Message:

see #19251 - Java 8: use Stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolverModel.java

    r16333 r16438  
    9595            keys.retainAll(keysWithConflicts);
    9696            if (showTagsWithMultiValuesOnly) {
    97                 Set<String> keysWithMultiValues = new HashSet<>();
    98                 for (String key: keys) {
    99                     if (decisions.get(key).canKeepAll()) {
    100                         keysWithMultiValues.add(key);
    101                     }
    102                 }
    103                 keys.retainAll(keysWithMultiValues);
     97                keys.removeIf(key -> !decisions.get(key).canKeepAll());
    10498            }
    10599            for (String key: tags.getKeys()) {
Note: See TracChangeset for help on using the changeset viewer.