Changeset 2590 in osm for applications/editors/josm/plugins/validator/src/org
- Timestamp:
- 2007-04-18T23:45:54+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/util/AgregatePrimitivesVisitor.java
r2453 r2590 74 74 if( o1 instanceof Node) 75 75 { 76 return o2 instanceof Node ? o1. compareTo(o2) : -1;76 return o2 instanceof Node ? o1.hashCode() - o2.hashCode() : -1; 77 77 } 78 78 else if( o1 instanceof Way) 79 79 { 80 return o2 instanceof Way ? o1. compareTo(o2) : 1;80 return o2 instanceof Way ? o1.hashCode() - o2.hashCode() : 1; 81 81 } 82 82 else // o1 is a segment … … 84 84 if( o2 instanceof Node ) return 1; 85 85 if( o2 instanceof Way ) return -1; 86 return o1. compareTo(o2);86 return o1.hashCode() - o2.hashCode(); 87 87 } 88 88 }
Note:
See TracChangeset
for help on using the changeset viewer.