Changeset 14759 in josm


Ignore:
Timestamp:
2019-02-02T21:01:16+01:00 (6 years ago)
Author:
simon04
Message:

Marker: avoid ConcurrentModificationException

Relates to r14747.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java

    r14747 r14759  
    1212import java.util.ArrayList;
    1313import java.util.Collection;
    14 import java.util.HashMap;
    1514import java.util.LinkedList;
    1615import java.util.List;
    1716import java.util.Map;
     17import java.util.concurrent.ConcurrentHashMap;
    1818
    1919import javax.swing.ImageIcon;
     
    7979        // will make gui for it so I'm keeping it here
    8080
    81         private static final Map<String, TemplateEntryProperty> CACHE = new HashMap<>();
     81        private static final Map<String, TemplateEntryProperty> CACHE = new ConcurrentHashMap<>();
    8282
    8383        public static TemplateEntryProperty forMarker(String layerName) {
Note: See TracChangeset for help on using the changeset viewer.