Changeset 8628 in josm for trunk/src/org
- Timestamp:
- 2015-07-29T00:00:59+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/CacheEntry.java
r8624 r8628 3 3 4 4 import java.io.Serializable; 5 import java.util.Arrays; 5 6 6 7 /** … … 18 19 */ 19 20 public CacheEntry(byte[] content) { 20 this.content = content;21 this.content = Arrays.copyOf(content, content.length); 21 22 } 22 23 … … 25 26 */ 26 27 public byte[] getContent() { 27 return content;28 return Arrays.copyOf(content, content.length); 28 29 } 29 30 } -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractCachedTileSourceLayer.java
r8624 r8628 43 43 44 44 private ICacheAccess<String, BufferedImageCacheEntry> cache; 45 private TileLoaderFactory loaderFactory; 45 private volatile TileLoaderFactory loaderFactory; 46 46 47 47
Note:
See TracChangeset
for help on using the changeset viewer.