Changeset 15913 in josm for trunk/src/org
- Timestamp:
- 2020-02-23T14:35:55+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/properties/PropertiesDialog.java
r15908 r15913 372 372 if (!newSel.isEmpty()) { 373 373 final LatLon center = newSel.iterator().next().getBBox().getCenter(); 374 Territories.getRegionalTaginfoUrls(center) 374 Territories.getRegionalTaginfoUrls(center).stream() 375 375 .map(taginfo -> new TaginfoAction( 376 376 tagTable, editHelper::getDataKey, editHelper::getDataValues, -
trunk/src/org/openstreetmap/josm/tools/Territories.java
r15908 r15913 10 10 import java.util.Collections; 11 11 import java.util.HashMap; 12 import java.util.List; 12 13 import java.util.Locale; 13 14 import java.util.Map; … … 203 204 * @since 15876 204 205 */ 205 public static Stream<TaginfoRegionalInstance> getRegionalTaginfoUrls(LatLon ll) {206 public static List<TaginfoRegionalInstance> getRegionalTaginfoUrls(LatLon ll) { 206 207 if (iso3166Cache == null) { 207 return Stream.empty();208 return Collections.emptyList(); 208 209 } 209 210 return iso3166Cache.entrySet().parallelStream().distinct() … … 212 213 .distinct() 213 214 .flatMap(code -> Stream.of(taginfoCache, taginfoGeofabrikCache).map(cache -> cache.get(code))) 214 .filter(Objects::nonNull); 215 .filter(Objects::nonNull) 216 .collect(Collectors.toList()); 215 217 } 216 218 }
Note:
See TracChangeset
for help on using the changeset viewer.