Skip to content

Commit

Permalink
Accept CharSequence in Strings.indent(), re #73
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Aug 8, 2024
1 parent 05d3b4a commit 8e89b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/libj/lang/Strings.java
Original file line number Diff line number Diff line change
Expand Up @@ -2255,7 +2255,7 @@ public static long hash(final CharSequence str) {
* @throws NullPointerException If {@code str} is null.
* @throws IllegalArgumentException If the number of spaces is negative.
*/
public static StringBuilder indent(final String str, final int spaces) {
public static StringBuilder indent(final CharSequence str, final int spaces) {
return indent(new StringBuilder(str), spaces);
}

Expand Down

0 comments on commit 8e89b58

Please sign in to comment.