Changeset 33328 in osm for applications/editors/josm/plugins/utilsplugin2/src
- Timestamp:
- 2017-05-22T21:50:52+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/actions/AlignWayNodesAction.java
r32410 r33328 11 11 import java.util.List; 12 12 import java.util.Set; 13 import java.util.stream.Collectors; 13 14 14 15 import javax.swing.JOptionPane; … … 144 145 private Set<Way> findCommonWays(Set<Node> nodes) { 145 146 Set<Way> ways = null; 146 for (Node n : nodes ) {147 for (Node n : nodes.stream().filter(n -> n.getDataSet() != null).collect(Collectors.toList())) { 147 148 List<Way> referrers = OsmPrimitive.getFilteredList(n.getReferrers(), Way.class); 148 149 if (ways == null)
Note:
See TracChangeset
for help on using the changeset viewer.