Changeset 17486 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-02-08T10:27:47+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/AbstractCachedTileSourceLayer.java
r16913 r17486 53 53 String key = this.getClass().getCanonicalName(); 54 54 loaderFactory = loaderFactories.get(key); 55 if (loaderFactory == null) {56 synchronized (AbstractCachedTileSourceLayer.class) {55 synchronized (AbstractCachedTileSourceLayer.class) { 56 if (loaderFactory == null) { 57 57 // check again, maybe another thread initialized factory 58 58 loaderFactory = loaderFactories.get(key); … … 78 78 */ 79 79 private synchronized ICacheAccess<String, BufferedImageCacheEntry> getCache() { 80 if (cache != null) { 81 return cache; 80 if (cache == null) { 81 cache = JCSCacheManager.getCache(getCacheName(), 82 0, 83 getDiskCacheSize(), 84 CachedTileLoaderFactory.PROP_TILECACHE_DIR.get()); 82 85 } 83 cache = JCSCacheManager.getCache(getCacheName(),84 0,85 getDiskCacheSize(),86 CachedTileLoaderFactory.PROP_TILECACHE_DIR.get());87 86 return cache; 88 87 }
Note:
See TracChangeset
for help on using the changeset viewer.