mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-08-16 12:23:59 +00:00
Co-authored-by: Antonio Addeo <an.addeo@reply.it>
This commit is contained in:
co-authored by
Antonio Addeo
parent
cf64d6ae9a
commit
b0cc0943f9
+2
-2
@@ -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() {}
|
||||
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user