Skip to content

Commit 402fb52

Browse files
committed
Replace new space string with constant
1 parent 7e6c0a6 commit 402fb52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lib/jdk/test/lib/format/Format.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public static String arrayDiff(Object first, Object second, int width, int conte
106106
* @return Padding string of spaces
107107
*/
108108
public static String paddingForWidth(int width) {
109-
return new String(" ").repeat(width);
109+
return " ".repeat(width);
110110
}
111111

112112
private static void appendCharToSb(char c, StringBuilder sb) {

0 commit comments

Comments
 (0)