Skip to content

Commit

Permalink
[Rollback] Add StringBuilder.repeat from Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraharker authored and copybara-github committed Dec 21, 2024
1 parent 6481877 commit c546bc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public String formatLine(String line, int lineNumber) {

// nice spaces for the line number
int spaces = numberLength - Integer.toString(lineNumber).length();
builder.repeat(" ", spaces);
builder.append(" ".repeat(spaces));
builder.append(lineNumber);
builder.append("| ");

Expand Down

0 comments on commit c546bc7

Please sign in to comment.