From 328439c78373370309b507fc6232183d749aed70 Mon Sep 17 00:00:00 2001 From: Looly Date: Mon, 31 Mar 2025 08:59:42 +0800 Subject: [PATCH] add comment --- hutool-core/src/main/java/cn/hutool/core/text/StrSplitter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/text/StrSplitter.java b/hutool-core/src/main/java/cn/hutool/core/text/StrSplitter.java index ce9d998d7..589fd21c6 100755 --- a/hutool-core/src/main/java/cn/hutool/core/text/StrSplitter.java +++ b/hutool-core/src/main/java/cn/hutool/core/text/StrSplitter.java @@ -174,7 +174,8 @@ public class StrSplitter { /** * 切分字符串
- * 如果为空字符串或者null 则返回空集合 + * 如果提供的字符串为{@code null},则返回一个空的{@link ArrayList}
+ * 如果提供的字符串为"",则当ignoreEmpty时返回空的{@link ArrayList},否则返回只有一个""元素的{@link ArrayList} * * @param 切分后的元素类型 * @param text 被切分的字符串