Skip to content

Commit f7a4f72

Browse files
eamonnmcmanusgoogle-java-format Team
authored andcommitted
Tiny optimization to exploit a method added in Java 21.
PiperOrigin-RevId: 893118622
1 parent 989e5b7 commit f7a4f72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/main/java/com/google/googlejavaformat/java/javadoc/JavadocWriter.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,8 @@ private int innerIndent() {
425425
return innerIndent;
426426
}
427427

428-
// If this is a hotspot, keep a String of many spaces around, and call append(string, start, end).
429428
private void appendSpaces(int count) {
430-
output.append(" ".repeat(count));
429+
output.repeat(' ', count);
431430
}
432431

433432
/**

0 commit comments

Comments
 (0)