fix: Fix generic type for deques in command README.md files Ref: #2462 (#2484)

Co-authored-by: Antonio Addeo <an.addeo@reply.it>
This commit is contained in:
Antonio Addeo
2023-06-10 15:03:05 +02:00
committed by GitHub
parent cf64d6ae9a
commit b0cc0943f9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -40,8 +40,8 @@ Here's the sample code with wizard and goblin. Let's start from the `Wizard` cla
@Slf4j
public class Wizard {
private final Deque<Command> undoStack = new LinkedList<>();
private final Deque<Command> redoStack = new LinkedList<>();
private final Deque<Runnable> undoStack = new LinkedList<>();
private final Deque<Runnable> redoStack = new LinkedList<>();
public Wizard() {}
+2 -2
View File
@@ -34,8 +34,8 @@ public class Wizard {
private static final Logger LOGGER = LoggerFactory.getLogger(Wizard.class);
private final Deque<Command> undoStack = new LinkedList<>();
private final Deque<Command> redoStack = new LinkedList<>();
private final Deque<Runnable> undoStack = new LinkedList<>();
private final Deque<Runnable> redoStack = new LinkedList<>();
public Wizard() {}