Changeset 15097 in josm for trunk/src/org
- Timestamp:
- 2019-05-20T00:47:32+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r15096 r15097 63 63 */ 64 64 public class ElemStyles implements PreferenceChangedListener { 65 private final List<StyleSource> styleSources ;65 private final List<StyleSource> styleSources = Collections.synchronizedList(new ArrayList<>()); 66 66 private boolean drawMultipolygon; 67 67 … … 74 74 private short defaultLinesIdx; 75 75 76 private final Map<String, String> preferenceCache = new HashMap<>();76 private final Map<String, String> preferenceCache = Collections.synchronizedMap(new HashMap<>()); 77 77 78 78 private volatile Color backgroundColorCache; … … 82 82 */ 83 83 public ElemStyles() { 84 styleSources = new ArrayList<>();85 84 Config.getPref().addPreferenceChangeListener(this); 86 85 }
Note:
See TracChangeset
for help on using the changeset viewer.