Changeset 9062 in josm for trunk/src/org/openstreetmap/josm/command
- Timestamp:
- 2015-11-25T01:21:14+01:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/command
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r8855 r9062 374 374 return null; 375 375 376 Collection<Way> waysToBeChanged = new HashSet<>();377 378 376 if (alsoDeleteNodesInWay) { 379 377 // delete untagged nodes only referenced by primitives in primitivesToDelete, too … … 386 384 return null; 387 385 388 waysToBeChanged .addAll(OsmPrimitive.getFilteredSet(OsmPrimitive.getReferrer(primitivesToDelete), Way.class));386 Collection<Way> waysToBeChanged = new HashSet<>(OsmPrimitive.getFilteredSet(OsmPrimitive.getReferrer(primitivesToDelete), Way.class)); 389 387 390 388 Collection<Command> cmds = new LinkedList<>(); -
trunk/src/org/openstreetmap/josm/command/PurgeCommand.java
r8931 r9062 200 200 @SuppressWarnings({ "unchecked", "rawtypes" }) 201 201 Set<Relation> inR = (Set) in; 202 Set<Relation> childlessR = new HashSet<>();203 List<Relation> outR = new ArrayList<>(inR.size());204 202 205 203 Map<Relation, Integer> numChilds = new HashMap<>(); … … 219 217 } 220 218 } 219 Set<Relation> childlessR = new HashSet<>(); 221 220 for (Relation r : inR) { 222 221 if (numChilds.get(r).equals(0)) { … … 225 224 } 226 225 226 List<Relation> outR = new ArrayList<>(inR.size()); 227 227 while (!childlessR.isEmpty()) { 228 228 // Identify one childless Relation and
Note:
See TracChangeset
for help on using the changeset viewer.