Changeset 18635 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/RemoteEntry.java
r18622 r18635 334 334 @Override 335 335 public int hashCode() { 336 return Objects.hash(this.uri, this. width, this.height, this.pos,336 return Objects.hash(this.uri, this.pos, 337 337 this.exifOrientation, this.elevation, this.speed, this.exifImgDir, 338 338 this.exifCoor, this.exifTime, this.exifGpsTime, this.gpsTime, … … 349 349 RemoteEntry other = this.getClass().cast(obj); 350 350 return Objects.equals(this.uri, other.uri) 351 && this.height == other.height352 && this.width == other.width353 351 && Objects.equals(this.elevation, other.elevation) 354 352 && Objects.equals(this.exifCoor, other.exifCoor) -
trunk/test/unit/org/openstreetmap/josm/gui/layer/geoimage/RemoteEntryTest.java
r18622 r18635 20 20 () -> null, () -> null, () -> null, () -> null); 21 21 EqualsVerifier.simple().forClass(RemoteEntry.class).usingGetClass() 22 .withIgnoredFields("firstImage", "lastImage", "nextImage", "previousImage") 22 .withIgnoredFields("firstImage", "lastImage", "nextImage", "previousImage" /* These suppliers don't have good == semantics */, 23 "width", "height" /* Width and height can be corrected later, although it is originally from exif, see #22626 */) 23 24 .withNonnullFields("uri") 24 25 .withPrefabValues(RemoteEntry.class, remoteEntryA, remoteEntryB)
Note:
See TracChangeset
for help on using the changeset viewer.