Skip to content

Commit

Permalink
Add StringBuilder.repeat from Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
blickly authored and lauraharker committed Dec 20, 2024
1 parent babbc12 commit bf416ea
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.append(" ".repeat(spaces));
builder.repeat(" ", spaces);
builder.append(lineNumber);
builder.append("| ");

Expand Down

0 comments on commit bf416ea

Please sign in to comment.