From 8e89b586e82824739185f2259316799126807be1 Mon Sep 17 00:00:00 2001 From: Seva Safris Date: Thu, 8 Aug 2024 16:39:21 +0700 Subject: [PATCH] Accept CharSequence in Strings.indent(), re #73 --- src/main/java/org/libj/lang/Strings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/libj/lang/Strings.java b/src/main/java/org/libj/lang/Strings.java index 16b5dea..5e67bde 100644 --- a/src/main/java/org/libj/lang/Strings.java +++ b/src/main/java/org/libj/lang/Strings.java @@ -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); }