Changeset 15569 in josm for trunk/src/org
- Timestamp:
- 2019-12-08T15:59:41+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Territories.java
r15565 r15569 147 147 public static Map<String, String> getNationalTaginfoUrls(LatLon ll) { 148 148 Map<String, String> result = new TreeMap<>(); 149 for (String code : iso3166Cache.entrySet().parallelStream().distinct() 150 .filter(e -> Boolean.TRUE.equals(e.getValue().get(ll))) 151 .map(Entry<String, GeoPropertyIndex<Boolean>>::getKey) 152 .collect(Collectors.toSet())) { 153 String taginfo = taginfoCache.get(code); 154 if (taginfo != null) { 155 result.put(code, taginfo); 149 if (iso3166Cache != null) { 150 for (String code : iso3166Cache.entrySet().parallelStream().distinct() 151 .filter(e -> Boolean.TRUE.equals(e.getValue().get(ll))) 152 .map(Entry<String, GeoPropertyIndex<Boolean>>::getKey) 153 .collect(Collectors.toSet())) { 154 String taginfo = taginfoCache.get(code); 155 if (taginfo != null) { 156 result.put(code, taginfo); 157 } 156 158 } 157 159 }
Note:
See TracChangeset
for help on using the changeset viewer.