mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-13 18:15:41 +00:00
Co-authored-by: Antonio Addeo <an.addeo@reply.it>
This commit is contained in:
1 parent
cf64d6ae9a
commit
b0cc0943f9
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -40,8 +40,8 @@ Here's the sample code with wizard and goblin. Let's start from the `Wizard` cla
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class Wizard {
|
public class Wizard {
|
||||||
|
|
||||||
private final Deque<Command> undoStack = new LinkedList<>();
|
private final Deque<Runnable> undoStack = new LinkedList<>();
|
||||||
private final Deque<Command> redoStack = new LinkedList<>();
|
private final Deque<Runnable> redoStack = new LinkedList<>();
|
||||||
|
|
||||||
public Wizard() {}
|
public Wizard() {}
|
||||||
|
|
||||||
|
|||||||
@@ -34,8 +34,8 @@ public class Wizard {
|
|||||||
|
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(Wizard.class);
|
private static final Logger LOGGER = LoggerFactory.getLogger(Wizard.class);
|
||||||
|
|
||||||
private final Deque<Command> undoStack = new LinkedList<>();
|
private final Deque<Runnable> undoStack = new LinkedList<>();
|
||||||
private final Deque<Command> redoStack = new LinkedList<>();
|
private final Deque<Runnable> redoStack = new LinkedList<>();
|
||||||
|
|
||||||
public Wizard() {}
|
public Wizard() {}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user