diff --git a/src/changes/changes.xml b/src/changes/changes.xml index cd007dc87..f97dad0fe 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -22,6 +22,7 @@ + Fix examples contained in javadoc of StringUtils.center methods ArrayUtils removeElements methods use unnecessary HashSet ArrayUtils removeElements methods clone temporary index arrays unnecessarily FastDateParser does not handle unterminated quotes correctly diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index d22b9c071..6a78eb863 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -4735,7 +4735,7 @@ public class StringUtils { * StringUtils.center(null, *, *) = null * StringUtils.center("", 4, ' ') = " " * StringUtils.center("ab", -1, ' ') = "ab" - * StringUtils.center("ab", 4, ' ') = " ab" + * StringUtils.center("ab", 4, ' ') = " ab " * StringUtils.center("abcd", 2, ' ') = "abcd" * StringUtils.center("a", 4, ' ') = " a " * StringUtils.center("a", 4, 'y') = "yayy" @@ -4773,7 +4773,7 @@ public class StringUtils { * StringUtils.center(null, *, *) = null * StringUtils.center("", 4, " ") = " " * StringUtils.center("ab", -1, " ") = "ab" - * StringUtils.center("ab", 4, " ") = " ab" + * StringUtils.center("ab", 4, " ") = " ab " * StringUtils.center("abcd", 2, " ") = "abcd" * StringUtils.center("a", 4, " ") = " a " * StringUtils.center("a", 4, "yz") = "yayz"