Changeset 13913 in josm


Ignore:
Timestamp:
2018-06-11T00:19:56+02:00 (10 months ago)
Author:
Don-vip
Message:

move hasSameInterestingTags() implementation from AbstractPrimitive to IPrimitive

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r13912 r13913  
    851851        return result;
    852852    }
    853 
    854     @Override
    855     public boolean hasSameInterestingTags(IPrimitive other) {
    856         return (!hasKeys() && !other.hasKeys())
    857                 || getInterestingTags().equals(other.getInterestingTags());
    858     }
    859853}
  • trunk/src/org/openstreetmap/josm/data/osm/IPrimitive.java

    r13912 r13913  
    471471     * @since 13809
    472472     */
    473     boolean hasSameInterestingTags(IPrimitive other);
     473    default boolean hasSameInterestingTags(IPrimitive other) {
     474        return (!hasKeys() && !other.hasKeys())
     475                || getInterestingTags().equals(other.getInterestingTags());
     476    }
    474477}
Note: See TracChangeset for help on using the changeset viewer.