Changeset 18343 in osm for applications/editors/josm
- Timestamp:
- 2009-10-28T21:03:55+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/DuplicateNode.java
r18092 r18343 6 6 import java.util.Collection; 7 7 import java.util.LinkedList; 8 import java.util.LinkedHashSet; 8 9 import java.util.List; 9 10 import java.util.Map; … … 109 110 { 110 111 Collection<OsmPrimitive> sel = new LinkedList<OsmPrimitive>(testError.getPrimitives()); 111 Linked List<Node> nodes = new LinkedList<Node>(OsmPrimitive.getFilteredList(sel, Node.class));112 LinkedHashSet<Node> nodes = new LinkedHashSet<Node>(OsmPrimitive.getFilteredList(sel, Node.class)); 112 113 Node target = MergeNodesAction.selectTargetNode(nodes); 113 114 if(checkAndConfirmOutlyingDeletes(nodes)) … … 127 128 * Request confirmation if he is. 128 129 */ 129 private static boolean checkAndConfirmOutlyingDeletes(Linked List<Node> del) {130 private static boolean checkAndConfirmOutlyingDeletes(LinkedHashSet<Node> del) { 130 131 Area a = Main.main.getCurrentDataSet().getDataSourceArea(); 131 132 if (a != null) {
Note:
See TracChangeset
for help on using the changeset viewer.