Skip to content

Commit

Permalink
Merge pull request iluwatar#641 from dosdebug/fix_command_pattern
Browse files Browse the repository at this point in the history
Removes unused size and visibility enumerations
  • Loading branch information
iluwatar authored Sep 26, 2017
2 parents 6848dd0 + c9f4048 commit 193879d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion command/src/main/java/com/iluwatar/command/Size.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
public enum Size {

SMALL("small"), NORMAL("normal"), LARGE("large"), UNDEFINED("");
SMALL("small"), NORMAL("normal");

private String title;

Expand Down
2 changes: 1 addition & 1 deletion command/src/main/java/com/iluwatar/command/Visibility.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
public enum Visibility {

VISIBLE("visible"), INVISIBLE("invisible"), UNDEFINED("");
VISIBLE("visible"), INVISIBLE("invisible");

private String title;

Expand Down
4 changes: 3 additions & 1 deletion command/src/main/java/com/iluwatar/command/Wizard.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ public class Wizard {
private Deque<Command> undoStack = new LinkedList<>();
private Deque<Command> redoStack = new LinkedList<>();

public Wizard() {}
public Wizard() {
// comment to ignore sonar issue: LEVEL critical
}

/**
* Cast spell
Expand Down

0 comments on commit 193879d

Please sign in to comment.