Changeset 6235 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2013-09-19T02:14:38+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
-
Diff.java (modified) (1 diff)
-
ImageProvider.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Diff.java
r6224 r6235 945 945 final int buffered_lines; 946 946 947 /** Number of common prefix elements. */948 final int prefix_lines = 0;949 950 947 /** Vector, indexed by line number, containing an equivalence code for 951 948 each line. It is this vector that is actually compared with that -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r6172 r6235 116 116 * Caches the image data for rotated versions of the same image. 117 117 */ 118 private static final Map<Image, Map<Long, ImageResource>> rotateCache= new HashMap<Image, Map<Long, ImageResource>>();119 120 private static final ExecutorService imageFetcher= Executors.newSingleThreadExecutor();118 private static final Map<Image, Map<Long, ImageResource>> ROTATE_CACHE = new HashMap<Image, Map<Long, ImageResource>>(); 119 120 private static final ExecutorService IMAGE_FETCHER = Executors.newSingleThreadExecutor(); 121 121 122 122 public interface ImageCallback { … … 339 339 } 340 340 }; 341 imageFetcher.submit(fetch);341 IMAGE_FETCHER.submit(fetch); 342 342 } else { 343 343 ImageIcon result = get(); … … 856 856 ImageResource imageResource = null; 857 857 858 synchronized ( rotateCache) {859 Map<Long, ImageResource> cacheByAngle = rotateCache.get(img);858 synchronized (ROTATE_CACHE) { 859 Map<Long, ImageResource> cacheByAngle = ROTATE_CACHE.get(img); 860 860 if (cacheByAngle == null) { 861 rotateCache.put(img, cacheByAngle = new HashMap<Long, ImageResource>());861 ROTATE_CACHE.put(img, cacheByAngle = new HashMap<Long, ImageResource>()); 862 862 } 863 863
Note:
See TracChangeset
for help on using the changeset viewer.
