Changeset 15870 in josm for trunk/src


Ignore:
Timestamp:
2020-02-16T23:43:01+01:00 (5 years ago)
Author:
simon04
Message:

MultiMapTest: extend

Based on test coverage and mutation testing using Pitest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/MultiMap.java

    r15717 r15870  
    121121     */
    122122    public Set<B> getValues(A key) {
    123         if (!map.containsKey(key))
    124             return new LinkedHashSet<>();
    125         return map.get(key);
     123        return map.getOrDefault(key, Collections.emptySet());
    126124    }
    127125
Note: See TracChangeset for help on using the changeset viewer.