commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brit...@apache.org
Subject [33/50] [lang] javadocs - fixed faulty samples of isNoneEmpty/isNoneBlank and added new ones to isAnyEmpty/isNoneEmpty/isAnyBlank/isNoneBlank for better understanding
Date Wed, 17 May 2017 15:04:17 GMT
javadocs - fixed faulty samples of isNoneEmpty/isNoneBlank
and added new ones to isAnyEmpty/isNoneEmpty/isAnyBlank/isNoneBlank for better understanding


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

Branch: refs/heads/release
Commit: 6d74e8f83e96f536cbbad98cd4fe6fbd1cd67663
Parents: c8e648b
Author: Basha <arbasha@paypalcorp.com>
Authored: Sun Apr 30 00:10:32 2017 +0530
Committer: Basha <arbasha@paypalcorp.com>
Committed: Sun Apr 30 00:13:06 2017 +0530

----------------------------------------------------------------------
 src/main/java/org/apache/commons/lang3/StringUtils.java | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/6d74e8f8/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 bd660bc..3385c64 100644
--- a/src/main/java/org/apache/commons/lang3/StringUtils.java
+++ b/src/main/java/org/apache/commons/lang3/StringUtils.java
@@ -240,6 +240,8 @@ public class StringUtils {
      * StringUtils.isAnyEmpty("  bob  ", null)  = true
      * StringUtils.isAnyEmpty(" ", "bar")       = false
      * StringUtils.isAnyEmpty("foo", "bar")     = false
+     * StringUtils.isAnyEmpty(new String[]{})   = false
+     * StringUtils.isAnyEmpty(new String[]{""}) = true
      * </pre>
      *
      * @param css  the CharSequences to check, may be null or empty
@@ -267,7 +269,8 @@ public class StringUtils {
      * StringUtils.isNoneEmpty("", "bar")        = false
      * StringUtils.isNoneEmpty("bob", "")        = false
      * StringUtils.isNoneEmpty("  bob  ", null)  = false
-     * StringUtils.isNoneEmpty(new String[] {})  = false
+     * StringUtils.isNoneEmpty(new String[] {})  = true
+     * StringUtils.isNoneEmpty(new String[]{""}) = false
      * StringUtils.isNoneEmpty(" ", "bar")       = true
      * StringUtils.isNoneEmpty("foo", "bar")     = true
      * </pre>
@@ -379,6 +382,7 @@ public class StringUtils {
      * StringUtils.isAnyBlank("  bob  ", null)  = true
      * StringUtils.isAnyBlank(" ", "bar")       = true
      * StringUtils.isAnyBlank(new String[] {})  = false
+     * StringUtils.isAnyBlank(new String[]{""}) = true
      * StringUtils.isAnyBlank("foo", "bar")     = false
      * </pre>
      *
@@ -411,7 +415,8 @@ public class StringUtils {
      * StringUtils.isNoneBlank("bob", "")        = false
      * StringUtils.isNoneBlank("  bob  ", null)  = false
      * StringUtils.isNoneBlank(" ", "bar")       = false
-     * StringUtils.isNoneBlank(new String[] {})  = false
+     * StringUtils.isNoneBlank(new String[] {})  = true
+     * StringUtils.isNoneBlank(new String[]{""}) = false
      * StringUtils.isNoneBlank("foo", "bar")     = true
      * </pre>
      *
@@ -1065,7 +1070,7 @@ public class StringUtils {
      * @see String#compareTo(String)
      * @param str1  the String to compare from
      * @param str2  the String to compare to
-     * @return &lt; 0, 0, &gt; 0, if {@code str1} is respectively less, equal ou
greater than {@code str2}
+     * @return &lt; 0, 0, &gt; 0, if {@code str1} is respectively less, equal or
greater than {@code str2}
      * @since 3.5
      */
     public static int compare(final String str1, final String str2) {


Mime
View raw message