diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java index d465e4d98..01e0d3beb 100644 --- a/src/main/java/org/apache/commons/lang3/StringUtils.java +++ b/src/main/java/org/apache/commons/lang3/StringUtils.java @@ -1677,6 +1677,16 @@ public class StringUtils { * A {@code null} CharSequence will return {@code false}. A {@code null} or zero * length search array will return {@code false}. *
+ * + *+ * StringUtils.containsAny(null, *) = false + * StringUtils.containsAny("", *) = false + * StringUtils.containsAny(*, null) = false + * StringUtils.containsAny(*, []) = false + * StringUtils.containsAny("abcd", "ab", "cd") = false + * StringUtils.containsAny("abc", "d", "abc") = true + *+ * * * @param cs The CharSequence to check, may be null * @param searchCharSequences The array of CharSequences to search for, may be null