Skip to content

Commit 0beb194

Browse files
committed
Minor fixes in Step Builder
1 parent f52d7d3 commit 0beb194

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ Java-design-patterns project uses [semantic versioning](http://semver.org/) sche
835835
* [Patterns of Enterprise Application Architecture](http://www.amazon.com/Patterns-Enterprise-Application-Architecture-Martin/dp/0321127420)
836836
* [Spring Data](http://www.amazon.com/Spring-Data-Mark-Pollack/dp/1449323952/ref=sr_1_1)
837837
* [J2EE Design Patterns](http://www.amazon.com/J2EE-Design-Patterns-William-Crawford/dp/0596004273/ref=sr_1_2)
838+
* [Marco Castigliego - Step Builder](http://rdafbn.blogspot.co.uk/2012/07/step-builder-pattern_28.html)
838839

839840

840841

step-builder/src/main/java/com/iluwatar/stepbuilder/Character.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ public String toString() {
7171
StringBuilder sb = new StringBuilder();
7272
sb.append("This is a ");
7373
sb.append(fighterClass != null ? fighterClass : wizardClass);
74-
sb.append(" named a ");
74+
sb.append(" named ");
7575
sb.append(name);
76-
sb.append(" armed ");
76+
sb.append(" armed with a ");
7777
sb.append(weapon != null ? weapon : spell != null ? spell : "with nothing");
7878
sb.append(abilities != null ? (" and wielding " + abilities + " abilities") : "");
7979
sb.append(".");

0 commit comments

Comments
 (0)