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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.