Skip to content

Commit 52f0923

Browse files
committed
Corrected spelling mistake in hair type: BOLD -> BALD.
1 parent d3fbc2e commit 52f0923

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

builder/src/main/java/com/iluwatar/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static void main( String[] args )
3838
System.out.println(warrior);
3939

4040
Hero thief = new HeroBuilder(Profession.THIEF, "Desmond")
41-
.withHairType(HairType.BOLD)
41+
.withHairType(HairType.BALD)
4242
.withWeapon(Weapon.BOW)
4343
.build();
4444
System.out.println(thief);

builder/src/main/java/com/iluwatar/HairType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
public enum HairType {
44

5-
BOLD, SHORT, CURLY, LONG_STRAIGHT, LONG_CURLY;
5+
BALD, SHORT, CURLY, LONG_STRAIGHT, LONG_CURLY;
66

77
@Override
88
public String toString() {
99
String s = "";
1010
switch(this) {
11-
case BOLD: s = "bold"; break;
11+
case BALD: s = "bold"; break;
1212
case SHORT: s = "short"; break;
1313
case CURLY: s = "curly"; break;
1414
case LONG_STRAIGHT: s = "long straight"; break;

builder/src/main/java/com/iluwatar/Hero.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public String toString() {
5555
sb.append(hairType);
5656
sb.append(" ");
5757
}
58-
sb.append(hairType != HairType.BOLD ? "hair" : "head");
58+
sb.append(hairType != HairType.BALD ? "hair" : "head");
5959
}
6060
if (armor != null) {
6161
sb.append(" wearing ");

0 commit comments

Comments
 (0)