Changeset 18801 in josm for trunk/src/org/openstreetmap/josm/tools/Territories.java
- Timestamp:
- 2023-08-09T15:30:01+02:00 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Territories.java
r18723 r18801 200 200 for (JsonValue feature : json.getObject().getJsonArray("features")) { 201 201 ofNullable(feature.asJsonObject().getJsonObject("properties")).ifPresent(props -> 202 ofNullable(props.getJsonObject("urls")). ifPresent(urls ->203 ofNullable(urls.getString(TAGINFO)).ifPresent(taginfo -> { 202 ofNullable(props.getJsonObject("urls")).flatMap(urls -> 203 ofNullable(urls.getString(TAGINFO))).ifPresent(taginfo -> { 204 204 JsonArray iso1 = props.getJsonArray(ISO3166_1_LC); 205 205 JsonArray iso2 = props.getJsonArray(ISO3166_2_LC); … … 209 209 readExternalTaginfo(taginfoGeofabrikCache, taginfo, iso2, source); 210 210 } 211 })) );211 })); 212 212 } 213 213 }
Note:
See TracChangeset
for help on using the changeset viewer.