From 752496200f029ecb3ca88cb95a943ccb65f48db5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Haisman?= Date: Fri, 26 Jul 2024 01:36:48 +0200 Subject: [PATCH] Fix JavaDoc comments in StringUtils. (#1251) Add missing quotation marks in examples. --- .../org/apache/commons/lang3/StringUtils.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index cccf53d56..22dc413e3 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -7758,10 +7758,10 @@ public class StringUtils { * StringUtils.splitPreserveAllTokens("a\tb\nc", null) = ["a", "b", "c"] * StringUtils.splitPreserveAllTokens("a b c", ' ') = ["a", "b", "c"] * StringUtils.splitPreserveAllTokens("a b c ", ' ') = ["a", "b", "c", ""] - * StringUtils.splitPreserveAllTokens("a b c ", ' ') = ["a", "b", "c", "", ""] - * StringUtils.splitPreserveAllTokens(" a b c", ' ') = ["", a", "b", "c"] - * StringUtils.splitPreserveAllTokens(" a b c", ' ') = ["", "", a", "b", "c"] - * StringUtils.splitPreserveAllTokens(" a b c ", ' ') = ["", a", "b", "c", ""] + * StringUtils.splitPreserveAllTokens("a b c ", ' ') = ["a", "b", "c", "", ""] + * StringUtils.splitPreserveAllTokens(" a b c", ' ') = ["", "a", "b", "c"] + * StringUtils.splitPreserveAllTokens(" a b c", ' ') = ["", "", "a", "b", "c"] + * StringUtils.splitPreserveAllTokens(" a b c ", ' ') = ["", "a", "b", "c", ""] * * * @param str the String to parse, may be {@code null} @@ -7791,14 +7791,14 @@ public class StringUtils { * StringUtils.splitPreserveAllTokens("", *) = [] * StringUtils.splitPreserveAllTokens("abc def", null) = ["abc", "def"] * StringUtils.splitPreserveAllTokens("abc def", " ") = ["abc", "def"] - * StringUtils.splitPreserveAllTokens("abc def", " ") = ["abc", "", def"] + * StringUtils.splitPreserveAllTokens("abc def", " ") = ["abc", "", "def"] * StringUtils.splitPreserveAllTokens("ab:cd:ef", ":") = ["ab", "cd", "ef"] * StringUtils.splitPreserveAllTokens("ab:cd:ef:", ":") = ["ab", "cd", "ef", ""] * StringUtils.splitPreserveAllTokens("ab:cd:ef::", ":") = ["ab", "cd", "ef", "", ""] - * StringUtils.splitPreserveAllTokens("ab::cd:ef", ":") = ["ab", "", cd", "ef"] - * StringUtils.splitPreserveAllTokens(":cd:ef", ":") = ["", cd", "ef"] - * StringUtils.splitPreserveAllTokens("::cd:ef", ":") = ["", "", cd", "ef"] - * StringUtils.splitPreserveAllTokens(":cd:ef:", ":") = ["", cd", "ef", ""] + * StringUtils.splitPreserveAllTokens("ab::cd:ef", ":") = ["ab", "", "cd", "ef"] + * StringUtils.splitPreserveAllTokens(":cd:ef", ":") = ["", "cd", "ef"] + * StringUtils.splitPreserveAllTokens("::cd:ef", ":") = ["", "", "cd", "ef"] + * StringUtils.splitPreserveAllTokens(":cd:ef:", ":") = ["", "cd", "ef", ""] * * * @param str the String to parse, may be {@code null}