Changeset 6069 in josm for trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
- Timestamp:
- 2013-07-17T00:01:07+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r5927 r6069 658 658 public boolean hasSameTags(OsmPrimitive other) { 659 659 // We cannot directly use Arrays.equals(keys, other.keys) as keys is not ordered by key 660 // but we can at least check if both arrays are null or of the same size before creating 660 // but we can at least check if both arrays are null or of the same size before creating 661 661 // and comparing the key maps (costly operation, see #7159) 662 return (keys == null && other.keys == null) 662 return (keys == null && other.keys == null) 663 663 || (keys != null && other.keys != null && keys.length == other.keys.length && (keys.length == 0 || getKeys().equals(other.getKeys()))); 664 664 }
Note:
See TracChangeset
for help on using the changeset viewer.