Changeset 12865 in josm for trunk/src/org/openstreetmap/josm/data/APIDataSet.java
- Timestamp:
- 2017-09-15T01:20:41+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/APIDataSet.java
r12673 r12865 282 282 283 283 public Set<Relation> getChildren(Relation relation) { 284 Set<Relation> p = children.get(relation); 285 if (p == null) { 286 p = new HashSet<>(); 287 children.put(relation, p); 288 } 289 return p; 284 return children.computeIfAbsent(relation, k -> new HashSet<>()); 290 285 } 291 286
Note:
See TracChangeset
for help on using the changeset viewer.