Ticket #17602: 17602.patch
| File 17602.patch, 2.0 KB (added by , 7 years ago) |
|---|
-
src/org/openstreetmap/josm/plugins/improveway/ImproveWayAccuracyAction.java
64 64 import org.openstreetmap.josm.tools.Logging; 65 65 import org.openstreetmap.josm.tools.Pair; 66 66 import org.openstreetmap.josm.tools.Shortcut; 67 import org.openstreetmap.josm.tools.Utils; 67 68 68 69 /** 69 70 * @author Alexander Kachkaev <alexander@kachkaev.ru>, 2011 … … 723 724 // Looking for candidateSegment copies in ways that are 724 725 // referenced 725 726 // by candidateSegment nodes 726 List<Way> firstNodeWays = OsmPrimitive.getFilteredList(727 List<Way> firstNodeWays = new ArrayList<>(Utils.filteredCollection( 727 728 candidateSegment.getFirstNode().getReferrers(), 728 Way.class) ;729 List<Way> secondNodeWays = OsmPrimitive.getFilteredList(729 Way.class)); 730 List<Way> secondNodeWays = new ArrayList<>(Utils.filteredCollection( 730 731 candidateSegment.getFirstNode().getReferrers(), 731 Way.class) ;732 Way.class)); 732 733 733 734 Collection<WaySegment> virtualSegments = new LinkedList<>(); 734 735 for (Way w : firstNodeWays) { … … 773 774 774 775 //check to see if node is in use by more than one object 775 776 List<OsmPrimitive> referrers = candidateNode.getReferrers(); 776 List<Way> ways = OsmPrimitive.getFilteredList(referrers, Way.class);777 Collection<Way> ways = Utils.filteredCollection(referrers, Way.class); 777 778 if (referrers.size() != 1 || ways.size() != 1) { 778 779 // detach node from way 779 780 final Way newWay = new Way(targetWay);
