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 -
trunk/test/unit/org/openstreetmap/josm/data/osm/ChangesetCacheTest.java
r11104 r11105 55 55 56 56 @Test 57 public void updateGetRemoveCycle() {57 public void testUpdateGetRemoveCycle() { 58 58 ChangesetCache cache = ChangesetCache.getInstance(); 59 59 cache.clear(); … … 68 68 69 69 @Test 70 public void updateTwice() {70 public void testUpdateTwice() { 71 71 ChangesetCache cache = ChangesetCache.getInstance(); 72 72 cache.clear(); … … 94 94 95 95 @Test 96 public void contains() throws ReflectiveOperationException {96 public void testContains() throws ReflectiveOperationException { 97 97 ChangesetCache cache = ChangesetCache.getInstance(); 98 98 getListeners(cache).clear(); … … 112 112 113 113 @Test 114 public void fireingEventsAddAChangeset() throws ReflectiveOperationException {114 public void testFireingEventsAddAChangeset() throws ReflectiveOperationException { 115 115 ChangesetCache cache = ChangesetCache.getInstance(); 116 116 cache.clear(); … … 134 134 135 135 @Test 136 public void fireingEventsUpdateChangeset() throws ReflectiveOperationException {136 public void testFireingEventsUpdateChangeset() throws ReflectiveOperationException { 137 137 ChangesetCache cache = ChangesetCache.getInstance(); 138 138 cache.clear(); … … 158 158 159 159 @Test 160 public void fireingEventsRemoveChangeset() throws ReflectiveOperationException {160 public void testFireingEventsRemoveChangeset() throws ReflectiveOperationException { 161 161 ChangesetCache cache = ChangesetCache.getInstance(); 162 162 cache.clear();
Note:
See TracChangeset
for help on using the changeset viewer.