Ignore:
Timestamp:
2020-05-17T14:18:22+02:00 (4 years ago)
Author:
simon04
Message:

see #19251 - Java 8: use Stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java

    r14273 r16438  
    777777        } else if (root instanceof Split) {
    778778            Split split = (Split) root;
    779             for (Node child : split.getChildren()) {
    780                 if (child.getBounds().contains(x, y))
    781                     return dividerAt(child, x, y);
    782             }
     779            return split.getChildren().stream()
     780                    .filter(child -> child.getBounds().contains(x, y))
     781                    .map(child -> dividerAt(child, x, y))
     782                    .findFirst().orElse(null);
    783783        }
    784784        return null;
Note: See TracChangeset for help on using the changeset viewer.