Changeset 6113 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2013-08-06T22:02:27+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r6093 r6113 49 49 public static Set<Node> addIntersections(List<Way> ways, boolean test, List<Command> cmds) { 50 50 51 //stupid java, cannot instantiate array of generic classes..51 int n = ways.size(); 52 52 @SuppressWarnings("unchecked") 53 int n = ways.size();54 53 ArrayList<Node>[] newNodes = new ArrayList[n]; 55 54 BBox[] wayBounds = new BBox[n]; … … 67 66 //iterate over all way pairs and introduce the intersections 68 67 Comparator<Node> coordsComparator = new NodePositionComparator(); 69 WayLoop:for (int seg1Way = 0; seg1Way < n; seg1Way ++) {68 for (int seg1Way = 0; seg1Way < n; seg1Way ++) { 70 69 for (int seg2Way = seg1Way; seg2Way < n; seg2Way ++) { 71 70
Note:
See TracChangeset
for help on using the changeset viewer.