Changeset 16438 in josm for trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
- Timestamp:
- 2020-05-17T14:18:22+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/ExtrudeAction.java
r15657 r16438 736 736 */ 737 737 private static boolean hasNodeOtherWays(Node node, Way myWay) { 738 for (OsmPrimitive p : node.getReferrers()) { 739 if (p instanceof Way && p.isUsable() && p != myWay) 740 return true; 741 } 742 return false; 738 return node.getReferrers().stream() 739 .anyMatch(p -> p instanceof Way && p.isUsable() && p != myWay); 743 740 } 744 741
Note:
See TracChangeset
for help on using the changeset viewer.