Changeset 17226 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-10-18T11:50:39+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/Command.java
r17102 r17226 4 4 import java.util.ArrayList; 5 5 import java.util.Collection; 6 import java.util. HashMap;6 import java.util.Collections; 7 7 import java.util.LinkedHashMap; 8 8 import java.util.Map; … … 20 20 import org.openstreetmap.josm.data.osm.visitor.OsmPrimitiveVisitor; 21 21 import org.openstreetmap.josm.tools.CheckParameterUtil; 22 import org.openstreetmap.josm.tools.Utils; 22 23 23 24 /** … … 123 124 124 125 /** the map of OsmPrimitives in the original state to OsmPrimitives in cloned state */ 125 private Map<OsmPrimitive, PrimitiveData> cloneMap = new HashMap<>();126 private Map<OsmPrimitive, PrimitiveData> cloneMap = Collections.emptyMap(); 126 127 127 128 /** the dataset which this command is applied to */ … … 154 155 osm.accept(visitor); 155 156 } 156 cloneMap = visitor.orig; 157 cloneMap = Utils.toUnmodifiableMap(visitor.orig); 157 158 return true; 158 159 }
Note:
See TracChangeset
for help on using the changeset viewer.