Changeset 16683 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-06-19T20:42:36+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/NetworkManager.java
r16426 r16683 3 3 4 4 import java.net.URL; 5 import java.util.Collections; 5 6 import java.util.EnumSet; 6 import java.util.HashMap;7 7 import java.util.Map; 8 8 import java.util.Set; 9 import java.util.concurrent.ConcurrentHashMap; 9 10 10 11 import org.openstreetmap.josm.tools.Logging; … … 16 17 public final class NetworkManager { 17 18 18 private static final Map<String, Throwable> NETWORK_ERRORS = new HashMap<>();19 private static final Map<String, Throwable> NETWORK_ERRORS = new ConcurrentHashMap<>(); 19 20 20 21 private static final Set<OnlineResource> OFFLINE_RESOURCES = EnumSet.noneOf(OnlineResource.class); … … 63 64 */ 64 65 public static Map<String, Throwable> getNetworkErrors() { 65 return new HashMap<>(NETWORK_ERRORS);66 return Collections.unmodifiableMap(NETWORK_ERRORS); 66 67 } 67 68
Note:
See TracChangeset
for help on using the changeset viewer.