@@ -33,7 +33,7 @@ final class Util {
3333 * @since 1.10.0
3434 */
3535 static String createPadding (final int len ) {
36- return filledString (len , ' ' );
36+ return repeat (len , ' ' );
3737 }
3838
3939 /**
@@ -48,19 +48,6 @@ static <T extends CharSequence> T defaultValue(final T str, final T defaultValue
4848 return isEmpty (str ) ? defaultValue : str ;
4949 }
5050
51- /**
52- * Constructs a string of specified length filled with the specified char.
53- *
54- * @param len the length of the final string.
55- * @param fillChar the character to file it will.
56- * @return A string of specified length filled with the specified char.
57- */
58- static String filledString (final int len , final char fillChar ) {
59- final char [] padding = new char [len ];
60- Arrays .fill (padding , fillChar );
61- return new String (padding );
62- }
63-
6451 /**
6552 * Finds the position of the first non whitespace character.
6653 *
@@ -110,6 +97,19 @@ static String ltrim(final String s) {
11097 return pos == -1 ? "" : s .substring (pos );
11198 }
11299
100+ /**
101+ * Constructs a string of specified length filled with the specified char.
102+ *
103+ * @param len the length of the final string.
104+ * @param fillChar the character to file it will.
105+ * @return A string of specified length filled with the specified char.
106+ */
107+ static String repeat (final int len , final char fillChar ) {
108+ final char [] padding = new char [len ];
109+ Arrays .fill (padding , fillChar );
110+ return new String (padding );
111+ }
112+
113113 /**
114114 * Removes the trailing whitespace from the specified String.
115115 *
0 commit comments