commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [1/3] [lang] LANG-1182: adding clarifying examples to StringUtils#containsAny javadoc
Date Mon, 16 Nov 2015 19:18:40 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 481137553 -> 56907c9a9


LANG-1182: adding clarifying examples to StringUtils#containsAny javadoc

as suggested by Larry West in https://issues.apache.org/jira/browse/LANG-1182


Project: http://git-wip-us.apache.org/repos/asf/commons-lang/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-lang/commit/1260e09d
Tree: http://git-wip-us.apache.org/repos/asf/commons-lang/tree/1260e09d
Diff: http://git-wip-us.apache.org/repos/asf/commons-lang/diff/1260e09d

Branch: refs/heads/master
Commit: 1260e09d6f2314c7099d061f1c65e6b4275cb8a1
Parents: 4811375
Author: Pascal Schumacher <pascalschumacher@gmx.net>
Authored: Sun Nov 8 22:44:07 2015 +0100
Committer: Pascal Schumacher <pascalschumacher@gmx.net>
Committed: Sun Nov 8 22:44:07 2015 +0100

----------------------------------------------------------------------
 .../org/apache/commons/lang3/StringUtils.java     | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/1260e09d/src/main/java/org/apache/commons/lang3/StringUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/lang3/StringUtils.java b/src/main/java/org/apache/commons/lang3/StringUtils.java
index fecd8d8..1b58b95 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -1889,14 +1889,16 @@ public class StringUtils {
      * </p>
      *
      * <pre>
-     * StringUtils.containsAny(null, *)            = false
-     * StringUtils.containsAny("", *)              = false
-     * StringUtils.containsAny(*, null)            = false
-     * StringUtils.containsAny(*, "")              = false
-     * StringUtils.containsAny("zzabyycdxx", "za") = true
-     * StringUtils.containsAny("zzabyycdxx", "by") = true
-     * StringUtils.containsAny("zzabyycdxx", "zy") = true
-     * StringUtils.containsAny("aba","z")          = false
+     * StringUtils.containsAny(null, *)               = false
+     * StringUtils.containsAny("", *)                 = false
+     * StringUtils.containsAny(*, null)               = false
+     * StringUtils.containsAny(*, "")                 = false
+     * StringUtils.containsAny("zzabyycdxx", "za")    = true
+     * StringUtils.containsAny("zzabyycdxx", "by")    = true
+     * StringUtils.containsAny("zzabyycdxx", "zy")    = true
+     * StringUtils.containsAny("zzabyycdxx", "\tx")   = true
+     * StringUtils.containsAny("zzabyycdxx", "$.#yF") = true
+     * StringUtils.containsAny("aba","z")             = false
      * </pre>
      *
      * @param cs


Mime
View raw message