Changeset 10877 in josm
- Timestamp:
- 2016-08-23T00:45:29+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r10764 r10877 25 25 import org.openstreetmap.josm.data.cache.ICachedLoaderListener.LoadResult; 26 26 import org.openstreetmap.josm.data.preferences.IntegerProperty; 27 import org.openstreetmap.josm.tools.CheckParameterUtil; 27 28 import org.openstreetmap.josm.tools.HttpClient; 28 29 import org.openstreetmap.josm.tools.Utils; … … 109 110 Map<String, String> headers, 110 111 ThreadPoolExecutor downloadJobExecutor) { 111 112 CheckParameterUtil.ensureParameterNotNull(cache, "cache"); 112 113 this.cache = cache; 113 114 this.now = System.currentTimeMillis(); -
trunk/src/org/openstreetmap/josm/data/imagery/TMSCachedTileLoader.java
r10723 r10877 17 17 import org.openstreetmap.josm.data.cache.HostLimitQueue; 18 18 import org.openstreetmap.josm.data.preferences.IntegerProperty; 19 import org.openstreetmap.josm.tools.CheckParameterUtil; 19 20 import org.openstreetmap.josm.tools.Utils; 20 21 … … 43 44 public static final IntegerProperty HOST_LIMIT = new IntegerProperty("imagery.tms.tmsloader.maxjobsperhost", 6); 44 45 45 46 46 /** 47 47 * separate from JCS thread pool for TMS loader, so we can have different thread pools for default JCS … … 64 64 public TMSCachedTileLoader(TileLoaderListener listener, ICacheAccess<String, BufferedImageCacheEntry> cache, 65 65 int connectTimeout, int readTimeout, Map<String, String> headers) throws IOException { 66 CheckParameterUtil.ensureParameterNotNull(cache, "cache"); 66 67 this.cache = cache; 67 68 this.connectTimeout = connectTimeout;
Note:
See TracChangeset
for help on using the changeset viewer.