Changeset 16555 in josm
- Timestamp:
- 2020-06-07T15:23:42+02:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/tests/DuplicateNode.java
r16445 r16555 187 187 Way w = (Way) sp; 188 188 Map<String, String> keys = w.getKeys(); 189 for (String type: typeMap.keySet()) { 190 if (keys.containsKey(type)) { 191 typeMap.put(type, Boolean.TRUE); 189 for (Iterator<Entry<String, Boolean>> itt = typeMap.entrySet().iterator(); itt.hasNext();) { 190 Entry<String, Boolean> e = itt.next(); 191 if (keys.containsKey(e.getKey())) { 192 e.setValue(Boolean.TRUE); 192 193 typed = true; 193 194 } -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/ImageryProvidersPanel.java
r16438 r16555 19 19 import java.util.HashMap; 20 20 import java.util.HashSet; 21 import java.util.Iterator; 21 22 import java.util.List; 22 23 import java.util.Map; 24 import java.util.Map.Entry; 23 25 import java.util.Objects; 24 26 import java.util.Optional; … … 409 411 410 412 private <T> void doCleanupResidualBounds(Map<Integer, T> map, Consumer<T> removalEffect) { 411 for (Integer i : map.keySet()) { 412 int viewIndex = defaultTable.convertRowIndexToView(i); 413 for (Iterator<Entry<Integer, T>> it = map.entrySet().iterator(); it.hasNext();) { 414 Entry<Integer, T> e = it.next(); 415 int viewIndex = defaultTable.convertRowIndexToView(e.getKey()); 413 416 if (!defaultTable.getSelectionModel().isSelectedIndex(viewIndex)) { 414 removalEffect.accept(map.remove(i)); 417 it.remove(); 418 removalEffect.accept(e.getValue()); 415 419 } 416 420 }
Note:
See TracChangeset
for help on using the changeset viewer.