Changeset 5194 in osm
- Timestamp:
- 2007-10-26T18:57:21+02:00 (17 years ago)
- Location:
- applications/editors/josm/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/OverlappingWays.java
r4843 r5194 9 9 import org.openstreetmap.josm.data.osm.Way; 10 10 import org.openstreetmap.josm.data.osm.Node; 11 import org.openstreetmap.josm. data.osm.NodePair;11 import org.openstreetmap.josm.tools.Pair; 12 12 import org.openstreetmap.josm.plugins.validator.Severity; 13 13 import org.openstreetmap.josm.plugins.validator.Test; … … 23 23 { 24 24 /** Bag of all way segments */ 25 Bag< NodePair, OsmPrimitive> nodePairs;25 Bag<Pair<Node,Node>, OsmPrimitive> nodePairs; 26 26 27 27 /** … … 40 40 public void startTest() 41 41 { 42 nodePairs = new Bag< NodePair, OsmPrimitive>(1000);42 nodePairs = new Bag<Pair<Node,Node>, OsmPrimitive>(1000); 43 43 } 44 44 … … 66 66 } 67 67 if (n.hashCode() > lastN.hashCode()) { 68 nodePairs.add(new NodePair(lastN, n), w);68 nodePairs.add(new Pair<Node,Node>(lastN, n), w); 69 69 } else { 70 nodePairs.add(new NodePair(n, lastN), w);70 nodePairs.add(new Pair<Node,Node>(n, lastN), w); 71 71 } 72 72 lastN = n;
Note:
See TracChangeset
for help on using the changeset viewer.