Ignore:
Timestamp:
2016-09-03T12:37:39+02:00 (8 years ago)
Author:
Don-vip
Message:

sonar - squid:S1450 - Private fields only used as local variables in methods should become local variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/BufferedImageCacheEntry.java

    r10723 r10938  
    1818    // transient to avoid serialization, volatile to avoid synchronization of whole getImage() method
    1919    private transient volatile BufferedImage img;
    20     private transient volatile boolean writtenToDisk;
    2120    // we need to have separate control variable, to know, if we already tried to load the image, as img might be null
    2221    // after we loaded image, as for example, when image file is malformed (eg. HTML file)
     
    7978            }
    8079            out.writeObject(this);
    81             // ugly hack to wait till element will get to disk to clean the memory
    82             writtenToDisk = true;
    8380
    8481            if (img != null) {
Note: See TracChangeset for help on using the changeset viewer.