Merge pull request #281 from ankurkaushal/master · umit/java-design-patterns@fe63c9c · GitHub
Skip to content

Commit fe63c9c

Browse files
committed
Merge pull request iluwatar#281 from ankurkaushal/master
Reformat according to google style guide
2 parents 7e4f046 + 306b1f3 commit fe63c9c

438 files changed

Lines changed: 8566 additions & 8691 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

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

Lines changed: 68 additions & 70 deletions

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
*/
88
public interface Army {
99

10-
String getDescription();
10+
String getDescription();
1111
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
*/
88
public interface Castle {
99

10-
String getDescription();
10+
String getDescription();
1111
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88
public class ElfArmy implements Army {
99

10-
static final String DESCRIPTION = "This is the Elven Army!";
10+
static final String DESCRIPTION = "This is the Elven Army!";
1111

12-
@Override
13-
public String getDescription() {
14-
return DESCRIPTION;
15-
}
12+
@Override
13+
public String getDescription() {
14+
return DESCRIPTION;
15+
}
1616
}

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88
public class ElfCastle implements Castle {
99

10-
static final String DESCRIPTION = "This is the Elven castle!";
10+
static final String DESCRIPTION = "This is the Elven castle!";
1111

12-
@Override
13-
public String getDescription() {
14-
return DESCRIPTION;
15-
}
12+
@Override
13+
public String getDescription() {
14+
return DESCRIPTION;
15+
}
1616
}

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88
public class ElfKing implements King {
99

10-
static final String DESCRIPTION = "This is the Elven king!";
11-
12-
@Override
13-
public String getDescription() {
14-
return DESCRIPTION;
15-
}
10+
static final String DESCRIPTION = "This is the Elven king!";
11+
12+
@Override
13+
public String getDescription() {
14+
return DESCRIPTION;
15+
}
1616
}

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
*/
88
public class ElfKingdomFactory implements KingdomFactory {
99

10-
public Castle createCastle() {
11-
return new ElfCastle();
12-
}
10+
public Castle createCastle() {
11+
return new ElfCastle();
12+
}
1313

14-
public King createKing() {
15-
return new ElfKing();
16-
}
14+
public King createKing() {
15+
return new ElfKing();
16+
}
1717

18-
public Army createArmy() {
19-
return new ElfArmy();
20-
}
18+
public Army createArmy() {
19+
return new ElfArmy();
20+
}
2121

2222
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
*/
88
public interface King {
99

10-
String getDescription();
10+
String getDescription();
1111
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
*/
88
public interface KingdomFactory {
99

10-
Castle createCastle();
10+
Castle createCastle();
1111

12-
King createKing();
12+
King createKing();
1313

14-
Army createArmy();
14+
Army createArmy();
1515

1616
}

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

Lines changed: 5 additions & 5 deletions

0 commit comments

Comments
 (0)