Changeset 15573 in josm for trunk/src/org


Ignore:
Timestamp:
2019-12-08T19:47:36+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #18404 - fix ConcurrentModificationException (regression from r15525)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java

    r15525 r15573  
    77import java.net.URL;
    88import java.security.SecureRandom;
    9 import java.util.HashSet;
    109import java.util.List;
    1110import java.util.Map;
     
    156155            first = !inProgress.containsKey(deduplicationKey);
    157156        }
    158         inProgress.computeIfAbsent(deduplicationKey, k -> new HashSet<>()).add(listener);
     157        inProgress.computeIfAbsent(deduplicationKey, k -> ConcurrentHashMap.newKeySet()).add(listener);
    159158
    160159        if (first || force) {
Note: See TracChangeset for help on using the changeset viewer.