Changeset 8510 in josm for trunk/src/org/openstreetmap/josm/data/cache/BufferedImageCacheEntry.java
- Timestamp:
- 2015-06-20T23:42:21+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/BufferedImageCacheEntry.java
r8488 r8510 42 42 if (imageLoaded) 43 43 return img; 44 synchronized (this) {44 synchronized (this) { 45 45 if (imageLoaded) 46 46 return img; … … 57 57 return img; 58 58 } 59 60 59 61 60 private void writeObject(java.io.ObjectOutputStream out) throws IOException { … … 81 80 synchronized (this) { 82 81 if (content == null && img != null) { 83 throw new AssertionError("Trying to serialize (save to disk?) an BufferedImageCacheEntry that was converted to BufferedImage and no raw data is present anymore"); 82 throw new AssertionError("Trying to serialize (save to disk?) an BufferedImageCacheEntry " + 83 "that was converted to BufferedImage and no raw data is present anymore"); 84 84 } 85 85 out.writeObject(this); … … 90 90 content = null; 91 91 } 92 93 92 } 94 93 }
Note:
See TracChangeset
for help on using the changeset viewer.