Ignore:
Timestamp:
2015-03-08T23:39:57+01:00 (9 years ago)
Author:
Don-vip
Message:

fix Sonar issue squid:S2444 - Lazy initialization of "static" fields should be "synchronized"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java

    r6084 r8126  
    1010import org.openstreetmap.josm.data.Preferences.ColorKey;
    1111import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;
     12import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.MapPaintSylesUpdateListener;
    1213import org.openstreetmap.josm.gui.mappaint.StyleSource;
    13 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles.MapPaintSylesUpdateListener;
    1414
    1515public enum PaintColors implements ColorKey {
     
    3535    private final Color defaultColor;
    3636
    37     private static Color backgroundColorCache = null;
     37    private static volatile Color backgroundColorCache = null;
    3838
    3939    private static final MapPaintSylesUpdateListener styleOverrideListener = new MapPaintSylesUpdateListener() {
Note: See TracChangeset for help on using the changeset viewer.