mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-11 20:13:52 +00:00
[refactor] Remove unnecessary declarations in command pattern.
This commit is contained in:
1 parent
6da9686a50
commit
0fbb4f4003
4 files changed
+4
-15
No files matched your search
@@ -4,10 +4,6 @@ public class InvisibilitySpell extends Command {
|
||||
|
||||
private Target target;
|
||||
|
||||
public InvisibilitySpell() {
|
||||
target = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(Target target) {
|
||||
target.setVisibility(Visibility.INVISIBLE);
|
||||
|
||||
Reference in new issue
Block a user