Ignore:
Timestamp:
2017-06-01T01:28:08+02:00 (7 years ago)
Author:
Don-vip
Message:

sonar - squid:CallToDeprecatedMethod - "@Deprecated" code should not be used

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

Legend:

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

    r12171 r12289  
    3636     */
    3737    double length();
    38 
    39     /**
    40      * Returns the number of times this track has been changed.
    41      * @return Number of times this track has been changed. Always 0 for read-only tracks
    42      * @deprecated since 12156 Replaced by change listeners.
    43      */
    44     @Deprecated
    45     default int getUpdateCount() {
    46         // to allow removal
    47         return 0;
    48     }
    4938
    5039    /**
  • trunk/src/org/openstreetmap/josm/data/gpx/ImmutableGpxTrack.java

    r11553 r12289  
    8484
    8585    @Override
    86     public int getUpdateCount() {
    87         return 0;
    88     }
    89 
    90     @Override
    9186    public int hashCode() {
    9287        return 31 * super.hashCode() + ((segments == null) ? 0 : segments.hashCode());
Note: See TracChangeset for help on using the changeset viewer.