Skip to content

Commit 933c84f

Browse files
committed
Fix checkstyle validations
1 parent 3634b33 commit 933c84f

File tree

1 file changed

+7
-4
lines changed
  • abstract-factory/src/main/java/com/iluwatar/abstractfactory

1 file changed

+7
-4
lines changed

abstract-factory/src/main/java/com/iluwatar/abstractfactory/App.java

+7-4
Original file line numberDiff line numberDiff line change
@@ -95,17 +95,20 @@ private void setArmy(final Army army) {
9595
this.army = army;
9696
}
9797

98+
/**
99+
* The factory of kingdom factories.
100+
*/
98101
public static class FactoryMaker {
99102

100-
private FactoryMaker() {
101-
}
102-
103+
/**
104+
* Enumeration for the different types of Kingdoms.
105+
*/
103106
public enum KingdomType {
104107
ELF, ORC
105108
}
106109

107110
/**
108-
* The factory of kingdom factories.
111+
* The factory method to create KingdomFactory concrete objects.
109112
*/
110113
public static KingdomFactory makeFactory(KingdomType type) {
111114
switch (type) {

0 commit comments

Comments
 (0)