Changeset 12293 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-06-01T15:43:36+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java
r12236 r12293 210 210 * @param pref the string that defines the custom projection 211 211 * @param cacheDir cache directory name 212 * @deprecated unused - remove in 2017-09 212 213 */ 213 214 public CustomProjection(String name, String code, String pref, String cacheDir) { 215 this(name, code, pref); 216 } 217 218 /** 219 * Constructs a new {@code CustomProjection} with given name, code and parameters. 220 * 221 * @param name describe projection in one or two words 222 * @param code unique code for this projection - may be null 223 * @param pref the string that defines the custom projection 224 */ 225 public CustomProjection(String name, String code, String pref) { 214 226 this.name = name; 215 227 this.code = code; 216 228 this.pref = pref; 217 this.cacheDir = cacheDir;218 229 try { 219 230 update(pref); … … 708 719 /** 709 720 * {@inheritDoc} 710 * @deprecated unused - remove in 2017-0 7721 * @deprecated unused - remove in 2017-09 711 722 */ 712 723 @Override -
trunk/src/org/openstreetmap/josm/gui/preferences/projection/AbstractProjectionChoice.java
r12289 r12293 51 51 } 52 52 53 /** 54 * Get the cache directory name. 55 * @return the cache directory name (base name) 56 * @deprecated unused - remove in 2017-09 57 */ 58 @Deprecated 59 public String getCacheDir() { 60 return cacheDir; 61 } 62 53 63 @Override 54 64 public String toString() { … … 64 74 String code = getCurrentCode(); 65 75 return new CustomProjection(getProjectionName(), code, Optional.ofNullable(Projections.getInit(code)) 66 .orElseThrow(() -> new AssertionError("Error: Unknown projection code: " + code)) , cacheDir);76 .orElseThrow(() -> new AssertionError("Error: Unknown projection code: " + code))); 67 77 } 68 78 }
Note:
See TracChangeset
for help on using the changeset viewer.