Changeset 15629 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-01-04T19:40:53+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18511 - Remove GpxExtension parent from equals contract (patch by Bjoeni)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxExtension.java

    r15504 r15629  
    234234    @Override
    235235    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());
    237237    }
    238238
     
    270270        } else if (!attr.equals(other.attr))
    271271            return false;
    272         if (parent == null) {
    273             if (other.parent != null)
    274                 return false;
    275         } else if (!parent.equals(other.parent))
    276             return false;
    277272        return true;
    278273    }
Note: See TracChangeset for help on using the changeset viewer.