Changeset 31539 in osm for applications/viewer/jmapviewer/src/org/openstreetmap/gui
- Timestamp:
- 2015-09-08T15:53:54+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/viewer/jmapviewer/src/org/openstreetmap/gui/jmapviewer/tilesources/BingAerialTileSource.java
r31538 r31539 12 12 import java.util.concurrent.Callable; 13 13 import java.util.concurrent.ExecutionException; 14 import java.util.concurrent.Executors;15 14 import java.util.concurrent.Future; 16 import java.util.concurrent. ThreadFactory;15 import java.util.concurrent.FutureTask; 17 16 import java.util.concurrent.TimeUnit; 18 17 import java.util.concurrent.TimeoutException; … … 258 257 synchronized (BingAerialTileSource.class) { 259 258 if (attributions == null) { 260 attributions = Executors.newSingleThreadExecutor(new ThreadFactory() { 261 @Override 262 public Thread newThread(Runnable r) { 263 return new Thread(r, "bing-attribution-loader"); 264 } 265 }).submit(getAttributionLoaderCallable()); 259 final FutureTask<List<Attribution>> loader = new FutureTask<>(getAttributionLoaderCallable()); 260 new Thread(loader, "bing-attribution-loader").start(); 261 attributions = loader; 266 262 } 267 263 }
Note:
See TracChangeset
for help on using the changeset viewer.