Changeset 13012 in josm for trunk/src


Ignore:
Timestamp:
2017-10-17T20:52:27+02:00 (7 years ago)
Author:
bastiK
Message:

remove trivial overrides, where this doesn't actually break binary compatibility

(This is only a problem if signature or return type of overriding method differs,
generic type T counting as Object.)

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

Legend:

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

    r12813 r13012  
    4141     */
    4242    private Object eastNorthCacheKey;
    43 
    44     /**
    45      * Determines if this node has valid coordinates.
    46      * @return {@code true} if this node has valid coordinates
    47      * @since 7828
    48      */
    49     @Override
    50     public boolean isLatLonKnown() {
    51         // We cannot use default implementation - if we remove this implementation, we will break binary compatibility.
    52         return !Double.isNaN(lat) && !Double.isNaN(lon);
    53     }
    5443
    5544    @Override
  • trunk/src/org/openstreetmap/josm/data/preferences/AbstractToStringProperty.java

    r12983 r13012  
    146146    }
    147147
    148     @Override
    149     public CachingProperty<T> cached() {
    150         // Removing this implementation breaks binary compatibility
    151         return super.cached();
    152     }
    153148}
Note: See TracChangeset for help on using the changeset viewer.