Changeset 15097 in josm for trunk/src


Ignore:
Timestamp:
2019-05-20T00:47:32+02:00 (5 years ago)
Author:
Don-vip
Message:

fix parallel execution of integration tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java

    r15096 r15097  
    6363 */
    6464public class ElemStyles implements PreferenceChangedListener {
    65     private final List<StyleSource> styleSources;
     65    private final List<StyleSource> styleSources = Collections.synchronizedList(new ArrayList<>());
    6666    private boolean drawMultipolygon;
    6767
     
    7474    private short defaultLinesIdx;
    7575
    76     private final Map<String, String> preferenceCache = new HashMap<>();
     76    private final Map<String, String> preferenceCache = Collections.synchronizedMap(new HashMap<>());
    7777
    7878    private volatile Color backgroundColorCache;
     
    8282     */
    8383    public ElemStyles() {
    84         styleSources = new ArrayList<>();
    8584        Config.getPref().addPreferenceChangeListener(this);
    8685    }
Note: See TracChangeset for help on using the changeset viewer.