Changeset 11105 in josm for trunk/src/org
- Timestamp:
- 2016-10-08T21:50:48+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/ExtendedDialog.java
r10957 r11105 108 108 // For easy access when inherited 109 109 protected transient Insets contentInsets = new Insets(10, 5, 0, 5); 110 protected List<JButton> buttons = new ArrayList<>();110 protected transient List<JButton> buttons = new ArrayList<>(); 111 111 112 112 /** -
trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java
r10717 r11105 13 13 import java.util.Collection; 14 14 import java.util.Collections; 15 import java.util.EnumSet; 15 16 import java.util.LinkedList; 16 17 import java.util.List; 17 import java.util.Set;18 18 import java.util.stream.Collectors; 19 19 … … 206 206 .collect(Collectors.joining(", ")); 207 207 tfId.tryToPasteFrom(parsedText); 208 final Set<OsmPrimitiveType> types = ids.stream().map(SimplePrimitiveId::getType).collect(Collectors.toSet()); 208 final EnumSet<OsmPrimitiveType> types = ids.stream().map(SimplePrimitiveId::getType).collect( 209 Collectors.toCollection(() -> EnumSet.noneOf(OsmPrimitiveType.class))); 209 210 if (types.size() == 1) { 210 211 // select corresponding type
Note:
See TracChangeset
for help on using the changeset viewer.