mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 10:59:03 +00:00
Resolves checkstyle errors for facade factory-kit spatial-partition state step-builder (#1077)
* Reduces checkstyle errors in facade * Reduces checkstyle errors in factory-kit * Reduces checkstyle errors in spatial-partition * Reduces checkstyle errors in state * Reduces checkstyle errors in step-builder
This commit is contained in:
committed by
Ilkka Seppälä
parent
2628cc0dfc
commit
c954a436ad
@@ -93,13 +93,13 @@ public class Character {
|
||||
public String toString() {
|
||||
var sb = new StringBuilder();
|
||||
sb.append("This is a ")
|
||||
.append(fighterClass != null ? fighterClass : wizardClass)
|
||||
.append(" named ")
|
||||
.append(name)
|
||||
.append(" armed with a ")
|
||||
.append(weapon != null ? weapon : spell != null ? spell : "with nothing")
|
||||
.append(abilities != null ? " and wielding " + abilities + " abilities" : "")
|
||||
.append('.');
|
||||
.append(fighterClass != null ? fighterClass : wizardClass)
|
||||
.append(" named ")
|
||||
.append(name)
|
||||
.append(" armed with a ")
|
||||
.append(weapon != null ? weapon : spell != null ? spell : "with nothing")
|
||||
.append(abilities != null ? " and wielding " + abilities + " abilities" : "")
|
||||
.append('.');
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user