Changeset 11553 in josm for trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
- Timestamp:
- 2017-02-12T16:32:18+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/CombineWayAction.java
r11389 r11553 17 17 import java.util.Map; 18 18 import java.util.Objects; 19 import java.util.Optional; 19 20 import java.util.Set; 20 21 import java.util.Stack; … … 520 521 521 522 protected List<NodePair> getOutboundPairs(Node node) { 522 List<NodePair> l = successors.get(node); 523 if (l == null) 524 return Collections.emptyList(); 525 return l; 523 return Optional.ofNullable(successors.get(node)).orElseGet(Collections::emptyList); 526 524 } 527 525
Note:
See TracChangeset
for help on using the changeset viewer.