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


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

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

Location:
trunk/src/org/openstreetmap/josm
Files:
3 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());
  • trunk/src/org/openstreetmap/josm/gui/preferences/projection/AbstractProjectionChoice.java

    r12216 r12289  
    5151    }
    5252
    53     /**
    54      * Get the cache directory name.
    55      * @return the cache directory name (base name)
    56      * @deprecated unused - remove in 2017-07
    57      */
    58     @Deprecated
    59     public String getCacheDir() {
    60         return cacheDir;
    61     }
    62 
    6353    @Override
    6454    public String toString() {
     
    7464        String code = getCurrentCode();
    7565        return new CustomProjection(getProjectionName(), code, Optional.ofNullable(Projections.getInit(code))
    76                 .orElseThrow(() -> new AssertionError("Error: Unknown projection code: " + code)), getCacheDir());
     66                .orElseThrow(() -> new AssertionError("Error: Unknown projection code: " + code)), cacheDir);
    7767    }
    7868}
Note: See TracChangeset for help on using the changeset viewer.