Ignore:
Timestamp:
2015-05-17T17:52:15+02:00 (5 years ago)
Author:
Don-vip
Message:

performance - use of EnumMap / EnumSet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/command/DeleteCommand.java

    r8376 r8388  
    1010import java.util.Collection;
    1111import java.util.Collections;
     12import java.util.EnumSet;
    1213import java.util.HashMap;
    1314import java.util.HashSet;
     
    157158
    158159    private Set<OsmPrimitiveType> getTypesToDelete() {
    159         Set<OsmPrimitiveType> typesToDelete = new HashSet<>();
     160        Set<OsmPrimitiveType> typesToDelete = EnumSet.noneOf(OsmPrimitiveType.class);
    160161        for (OsmPrimitive osm : toDelete) {
    161162            typesToDelete.add(OsmPrimitiveType.from(osm));
Note: See TracChangeset for help on using the changeset viewer.