Changeset 16453 in josm for trunk/src/org/openstreetmap/josm/gui/widgets
- Timestamp:
- 2020-05-17T19:53:25+02:00 (4 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java
r16448 r16453 159 159 .mapToObj(i -> getUI().getAccessibleChild(this, i)) 160 160 .filter(child -> child instanceof ComboPopup) 161 .findFirst() 161 162 .map(child -> ((ComboPopup) child).getList()) 162 . findFirst().orElse(null);163 .orElse(null); 163 164 } 164 165 -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitLayout.java
r16450 r16453 36 36 import java.util.ListIterator; 37 37 import java.util.Map; 38 import java.util.Objects;39 38 40 39 import javax.swing.UIManager; … … 780 779 return split.getChildren().stream() 781 780 .filter(child -> child.getBounds().contains(x, y)) 781 .findFirst() 782 782 .map(child -> dividerAt(child, x, y)) 783 .filter(Objects::nonNull) 784 .findFirst().orElse(null); 783 .orElse(null); 785 784 } 786 785 return null;
Note:
See TracChangeset
for help on using the changeset viewer.