You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ba...@apache.org on 2009/06/30 08:34:01 UTC

svn commit: r789575 - /commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java

Author: bayard
Date: Tue Jun 30 06:34:01 2009
New Revision: 789575

URL: http://svn.apache.org/viewvc?rev=789575&view=rev
Log:
Moving a few of the StringUtils methods over to accepting CharSequence instead of String as part of LANG-510

Modified:
    commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java

Modified: commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java?rev=789575&r1=789574&r2=789575&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java Tue Jun 30 06:34:01 2009
@@ -188,7 +188,7 @@
      * @param str  the String to check, may be null
      * @return <code>true</code> if the String is empty or null
      */
-    public static boolean isEmpty(String str) {
+    public static boolean isEmpty(CharSequence str) {
         return str == null || str.length() == 0;
     }
 
@@ -206,7 +206,7 @@
      * @param str  the String to check, may be null
      * @return <code>true</code> if the String is not empty and not null
      */
-    public static boolean isNotEmpty(String str) {
+    public static boolean isNotEmpty(CharSequence str) {
         return !StringUtils.isEmpty(str);
     }
 
@@ -225,7 +225,7 @@
      * @return <code>true</code> if the String is null, empty or whitespace
      * @since 2.0
      */
-    public static boolean isBlank(String str) {
+    public static boolean isBlank(CharSequence str) {
         int strLen;
         if (str == null || (strLen = str.length()) == 0) {
             return true;
@@ -254,7 +254,7 @@
      *  not empty and not null and not whitespace
      * @since 2.0
      */
-    public static boolean isNotBlank(String str) {
+    public static boolean isNotBlank(CharSequence str) {
         return !StringUtils.isBlank(str);
     }