Changeset 16963 in josm


Ignore:
Timestamp:
2020-08-29T14:38:13+02:00 (4 weeks ago)
Author:
simon04
Message:

StyleElement.FONT_MAP: use ConcurrentHashMap

File:
1 edited

Legend:

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

    r16959 r16963  
    33
    44import java.awt.Font;
    5 import java.util.HashMap;
    65import java.util.Map;
    76import java.util.Objects;
     7import java.util.concurrent.ConcurrentHashMap;
    88
    99import org.openstreetmap.josm.data.osm.IPrimitive;
     
    197197    }
    198198
    199     private static final Map<FontDescriptor, Font> FONT_MAP = new HashMap<>();
     199    private static final Map<FontDescriptor, Font> FONT_MAP = new ConcurrentHashMap<>();
    200200
    201201    private static Font getCachedFont(String name, int style, int size) {
Note: See TracChangeset for help on using the changeset viewer.