Use String.repeat instead of explicit cycle
See gh-31802
This commit is contained in:
committed by
Stéphane Nicoll
parent
1ff683b259
commit
63b2787da6
@@ -98,9 +98,7 @@ public final class ParseState {
|
||||
for (ParseState.Entry entry : this.state) {
|
||||
if (i > 0) {
|
||||
sb.append('\n');
|
||||
for (int j = 0; j < i; j++) {
|
||||
sb.append('\t');
|
||||
}
|
||||
sb.append("\t".repeat(i));
|
||||
sb.append("-> ");
|
||||
}
|
||||
sb.append(entry);
|
||||
|
||||
Reference in New Issue
Block a user