Changeset 35334 in osm for applications/editors/josm/plugins/utilsplugin2/src
- Timestamp:
- 2020-02-21T11:35:40+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/NodeWayUtils.java
r35177 r35334 8 8 import java.util.HashSet; 9 9 import java.util.Iterator; 10 import java.util.LinkedHashSet; 10 11 import java.util.List; 11 12 import java.util.Objects; … … 95 96 List<Node> nodes = w.getNodes(); 96 97 boolean flag = ways.contains(w); 97 for (Node n: nodes) {98 filteredAddAll(ways, n.getParentWays());99 }98 Set<Way> parents = new LinkedHashSet<>(); 99 nodes.forEach(n -> parents.addAll(n.getParentWays())); 100 filteredAddAll(ways, parents); 100 101 if (!flag) ways.remove(w); 101 102 return ways.size() - s;
Note:
See TracChangeset
for help on using the changeset viewer.