- Timestamp:
- 2021-07-11T04:22:04+02:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/RestorePropertyAction.java
r17773 r17996 6 6 import java.awt.event.ActionEvent; 7 7 import java.util.Collections; 8 import java.util.HashMap; 8 9 import java.util.Map; 9 10 import java.util.function.IntFunction; 10 11 import java.util.function.Supplier; 11 import java.util.stream.Collectors;12 12 13 13 import javax.swing.AbstractAction; … … 56 56 57 57 Map<String, String> changes = TableHelper.selectedIndices(selectionModel).boxed() 58 .collect( Collectors.toMap(keyFn::apply, valueFn::apply, (a, b) -> b));58 .collect(HashMap::new, (m,i)->m.put(keyFn.apply(i), valueFn.apply(i)), HashMap::putAll); 59 59 ChangePropertyCommand command = new ChangePropertyCommand(Collections.singleton(primitive), changes); 60 60 UndoRedoHandler.getInstance().add(command);
Note:
See TracChangeset
for help on using the changeset viewer.