Skip to content

Commit

Permalink
Fluent API calls
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed May 4, 2024
1 parent 581e9ae commit 4c63e89
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions src/main/java/org/apache/commons/validator/Arg.java
Original file line number Diff line number Diff line change
Expand Up @@ -170,19 +170,21 @@ public void setResource(final boolean resource) {
*/
@Override
public String toString() {
final StringBuilder results = new StringBuilder();
results.append("Arg: name=");
results.append(name);
results.append(" key=");
results.append(key);
results.append(" position=");
results.append(position);
results.append(" bundle=");
results.append(bundle);
results.append(" resource=");
results.append(resource);
results.append("\n");
return results.toString();
// @formatter:off
return new StringBuilder()
.append("Arg: name=")
.append(name)
.append(" key=")
.append(key)
.append(" position=")
.append(position)
.append(" bundle=")
.append(bundle)
.append(" resource=")
.append(resource)
.append("\n")
.toString();
// @formatter:on
}

}

0 comments on commit 4c63e89

Please sign in to comment.