Changeset 15906 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2020-02-23T00:29:48+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/StructUtils.java
r15121 r15906 34 34 import org.openstreetmap.josm.tools.MultiMap; 35 35 import org.openstreetmap.josm.tools.ReflectionUtils; 36 import org.openstreetmap.josm.tools.Utils; 36 37 37 38 /** … … 270 271 try (JsonReader reader = Json.createReader(new StringReader(s))) { 271 272 JsonObject object = reader.readObject(); 272 ret = new HashMap( object.size());273 ret = new HashMap(Utils.hashMapInitialCapacity(object.size())); 273 274 for (Map.Entry<String, JsonValue> e: object.entrySet()) { 274 275 JsonValue value = e.getValue();
Note:
See TracChangeset
for help on using the changeset viewer.