Changeset 36230 in osm for applications/editors/josm/plugins/reverter/src/reverter/DataSetCommandMerger.java
- Timestamp:
- 2024-03-19T17:42:16+01:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/reverter/src/reverter/DataSetCommandMerger.java
r35464 r36230 7 7 import java.util.Collection; 8 8 import java.util.HashMap; 9 import java.util.HashSet; 9 10 import java.util.LinkedHashSet; 10 11 import java.util.LinkedList; 11 12 import java.util.List; 12 13 import java.util.Map; 14 import java.util.Set; 13 15 14 16 import org.openstreetmap.josm.command.ChangeCommand; … … 38 40 private final DataSet targetDataSet; 39 41 40 private final List<Command> cmds = new LinkedList<>();41 private final List<OsmPrimitive> nominalRevertedPrimitives = new LinkedList<>();42 private final List<Command> cmds = new ArrayList<>(); 43 private final Set<OsmPrimitive> nominalRevertedPrimitives = new HashSet<>(); 42 44 43 45 /** … … 60 62 nominalRevertedPrimitives.add(target); 61 63 } 62 Logging.debug("Reverting " + target + " to " +newTarget);64 Logging.debug("Reverting {0} to {1}", target, newTarget); 63 65 } 64 66 } … … 126 128 // Target node has been deleted by a more recent changeset -> conflict 127 129 } else if (sourceNode.isIncomplete() && !conflicts.hasConflictForMy(targetNode)) { 128 localConflicts.add(new Conflict< OsmPrimitive>(targetNode, sourceNode, true));130 localConflicts.add(new Conflict<>(targetNode, sourceNode, true)); 129 131 } else { 130 132 Logging.info("Skipping target node "+targetNode+" for source node "+sourceNode+" while reverting way "+source);
Note:
See TracChangeset
for help on using the changeset viewer.