Changeset 2555 in josm for trunk/src/org
- Timestamp:
- 2009-11-30T16:10:21+01:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Node.java
r2512 r2555 161 161 162 162 public int compareTo(OsmPrimitive o) { 163 return o instanceof Node ? Long.valueOf(get Id()).compareTo(o.getId()) : 1;163 return o instanceof Node ? Long.valueOf(getUniqueId()).compareTo(o.getUniqueId()) : 1; 164 164 } 165 165 -
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r2512 r2555 231 231 232 232 public int compareTo(OsmPrimitive o) { 233 return o instanceof Relation ? Long.valueOf(get Id()).compareTo(o.getId()) : -1;233 return o instanceof Relation ? Long.valueOf(getUniqueId()).compareTo(o.getUniqueId()) : -1; 234 234 } 235 235 -
trunk/src/org/openstreetmap/josm/data/osm/Way.java
r2512 r2555 241 241 if (o instanceof Relation) 242 242 return 1; 243 return o instanceof Way ? Long.valueOf(get Id()).compareTo(o.getId()) : -1;243 return o instanceof Way ? Long.valueOf(getUniqueId()).compareTo(o.getUniqueId()) : -1; 244 244 } 245 245
Note:
See TracChangeset
for help on using the changeset viewer.