Changeset 11553 in josm for trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
- Timestamp:
- 2017-02-12T16:32:18+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoaderJob.java
r11452 r11553 11 11 import java.util.Map; 12 12 import java.util.Map.Entry; 13 import java.util.Optional; 13 14 import java.util.Set; 14 15 import java.util.concurrent.ConcurrentHashMap; … … 90 91 if (tile != null) { 91 92 TileSource tileSource = tile.getTileSource(); 92 String tsName = tileSource.getName(); 93 if (tsName == null) { 94 tsName = ""; 95 } 96 return tsName.replace(':', '_') + ':' + tileSource.getTileId(tile.getZoom(), tile.getXtile(), tile.getYtile()); 93 return Optional.ofNullable(tileSource.getName()).orElse("").replace(':', '_') + ':' 94 + tileSource.getTileId(tile.getZoom(), tile.getXtile(), tile.getYtile()); 97 95 } 98 96 return null;
Note:
See TracChangeset
for help on using the changeset viewer.