We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede37bd commit 58816d4Copy full SHA for 58816d4
builder/src/main/java/com/iluwatar/builder/Hero.java
@@ -81,7 +81,7 @@ public static class Builder {
81
/** Constructor. */
82
public Builder(Profession profession, String name) {
83
if (profession == null || name == null) {
84
- throw new IllegalArgumentException("profession and name can not be null");
+ throw new IllegalArgumentException("profession or name can not be null");
85
}
86
this.profession = profession;
87
this.name = name;
0 commit comments