Ticket #17598: 17598.patch
File 17598.patch, 1.0 KB (added by , 6 years ago) |
---|
-
src/org/openstreetmap/josm/plugins/waydownloader/WayDownloaderPlugin.java
37 37 import org.openstreetmap.josm.spi.preferences.Config; 38 38 import org.openstreetmap.josm.tools.Logging; 39 39 import org.openstreetmap.josm.tools.Shortcut; 40 import org.openstreetmap.josm.tools.Utils; 40 41 41 42 /** 42 43 * Plugin class for the Way Downloader plugin … … 270 271 * @return the list of ways. May be empty, but null. 271 272 */ 272 273 private List<Way> findConnectedWays(Node referenceNode) { 273 List<Way> referers = OsmPrimitive.getFilteredList(referenceNode.getReferrers(), Way.class);274 List<Way> referers = new ArrayList<>(Utils.filteredCollection(referenceNode.getReferrers(), Way.class)); 274 275 ArrayList<Way> connectedWays = new ArrayList<>(referers.size()); 275 276 276 277 //loop through referers