mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 20:58:35 +00:00
[refactor] Remove unnecessary declarations in command pattern.
This commit is contained in:
@@ -5,9 +5,8 @@ public class Wizard extends Target {
|
||||
private Command previousSpell;
|
||||
|
||||
public Wizard() {
|
||||
this.setSize(Size.NORMAL);
|
||||
this.setVisibility(Visibility.VISIBLE);
|
||||
previousSpell = null;
|
||||
setSize(Size.NORMAL);
|
||||
setVisibility(Visibility.VISIBLE);
|
||||
}
|
||||
|
||||
public void castSpell(Command command, Target target) {
|
||||
|
||||
Reference in New Issue
Block a user