- Timestamp:
- 2015-08-02T11:53:28+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r8624 r8635 53 53 // Absolute expire time limit. Cached tiles that are older will not be used, 54 54 // even if the refresh from the server fails. 55 protected static final long ABSOLUTE_EXPIRE_TIME_LIMIT = Long.MAX_VALUE; // unlimited55 protected static final long ABSOLUTE_EXPIRE_TIME_LIMIT = 1000L * 60 * 60 * 24 * 365; // 1 year 56 56 57 57 /** … … 455 455 } 456 456 } 457 457 458 if (force) { 458 459 urlConn.setUseCaches(false); -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
r8624 r8635 289 289 tile.finishLoading(); 290 290 } 291 if (attributes.getResponseCode() >= 400) { 291 if (attributes != null && attributes.getResponseCode() >= 400) { 292 292 if (attributes.getErrorMessage() == null) { 293 293 tile.setError(tr("HTTP error {0} when loading tiles", attributes.getResponseCode())); -
trunk/src/org/openstreetmap/josm/data/imagery/WMTSTileSource.java
r8627 r8635 180 180 this.currentLayer = layerSelection.getSelectedLayer(); 181 181 // TODO: save layer information into ImageryInfo / ImageryPreferences? 182 } else { 183 throw new IllegalArgumentException(tr("No layer selected")); //user canceled operation 184 } 182 } 183 184 if (this.currentLayer == null) { 185 // user canceled operation or did not choose any layer 186 throw new IllegalArgumentException(tr("No layer selected")); 187 } 188 185 189 } else if (layers.size() == 1) { 186 190 this.currentLayer = this.layers.iterator().next();
Note:
See TracChangeset
for help on using the changeset viewer.