- Timestamp:
- 2020-06-07T22:46:53+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/UndoRedoHandler.java
r16468 r16567 2 2 package org.openstreetmap.josm.data; 3 3 4 import java.util.Collections; 4 5 import java.util.EventObject; 5 6 import java.util.LinkedList; … … 238 239 * Returns all commands that were made on the dataset, that can be undone. 239 240 * @return all commands that were made on the dataset, that can be undone 240 * @since 14281 241 */ 242 public Li nkedList<Command> getUndoCommands() {243 return new LinkedList<>(commands);241 * @since 14281, 16567 (signature) 242 */ 243 public List<Command> getUndoCommands() { 244 return Collections.unmodifiableList(commands); 244 245 } 245 246 … … 247 248 * Returns all commands that were made and undone on the dataset, that can be redone. 248 249 * @return all commands that were made and undone on the dataset, that can be redone. 249 * @since 14281 250 */ 251 public Li nkedList<Command> getRedoCommands() {252 return new LinkedList<>(redoCommands);250 * @since 14281, 16567 (signature) 251 */ 252 public List<Command> getRedoCommands() { 253 return Collections.unmodifiableList(redoCommands); 253 254 } 254 255
Note:
See TracChangeset
for help on using the changeset viewer.