Skip to content

Commit 193879d

Browse files
authored
Merge pull request iluwatar#641 from dosdebug/fix_command_pattern
Removes unused size and visibility enumerations
2 parents 6848dd0 + c9f4048 commit 193879d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

command/src/main/java/com/iluwatar/command/Size.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
public enum Size {
3131

32-
SMALL("small"), NORMAL("normal"), LARGE("large"), UNDEFINED("");
32+
SMALL("small"), NORMAL("normal");
3333

3434
private String title;
3535

command/src/main/java/com/iluwatar/command/Visibility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030
public enum Visibility {
3131

32-
VISIBLE("visible"), INVISIBLE("invisible"), UNDEFINED("");
32+
VISIBLE("visible"), INVISIBLE("invisible");
3333

3434
private String title;
3535

command/src/main/java/com/iluwatar/command/Wizard.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ public class Wizard {
4040
private Deque<Command> undoStack = new LinkedList<>();
4141
private Deque<Command> redoStack = new LinkedList<>();
4242

43-
public Wizard() {}
43+
public Wizard() {
44+
// comment to ignore sonar issue: LEVEL critical
45+
}
4446

4547
/**
4648
* Cast spell

0 commit comments

Comments
 (0)