Changeset 15629 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/gpx/GpxExtension.java
r15504 r15629 234 234 @Override 235 235 public int hashCode() { 236 return Objects.hash(prefix, key, value, attr, parent,visible, super.hashCode());236 return Objects.hash(prefix, key, value, attr, visible, super.hashCode()); 237 237 } 238 238 … … 270 270 } else if (!attr.equals(other.attr)) 271 271 return false; 272 if (parent == null) {273 if (other.parent != null)274 return false;275 } else if (!parent.equals(other.parent))276 return false;277 272 return true; 278 273 } -
trunk/test/unit/org/openstreetmap/josm/data/gpx/GpxExtensionTest.java
r15496 r15629 39 39 EqualsVerifier.forClass(GpxExtension.class).usingGetClass() 40 40 .suppress(Warning.NONFINAL_FIELDS) 41 .withIgnoredFields("qualifiedName" )41 .withIgnoredFields("qualifiedName", "parent") 42 42 .withPrefabValues(GpxExtensionCollection.class, new GpxExtensionCollection(), col) 43 43 .verify();
Note:
See TracChangeset
for help on using the changeset viewer.