Use String.repeat instead of explicit cycle
See gh-31802
This commit is contained in:
committed by
Stéphane Nicoll
parent
1ff683b259
commit
63b2787da6
@@ -80,9 +80,7 @@ class ToStringVisitor implements RouterFunctions.Visitor, RequestPredicates.Visi
|
||||
}
|
||||
|
||||
private void indent() {
|
||||
for (int i = 0; i < this.indent; i++) {
|
||||
this.builder.append(' ');
|
||||
}
|
||||
this.builder.append(" ".repeat(Math.max(0, this.indent)));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user