Author: ggregory
Date: Wed Feb  6 11:27:10 2008
New Revision: 619115

URL: http://svn.apache.org/viewvc?rev=619115&view=rev
Log:
Eat own dog food: 

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=619115&r1=619114&r2=619115&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 
Wed Feb  6 11:27:10 2008
@@ -2351,7 +2351,7 @@
             return ArrayUtils.EMPTY_STRING_ARRAY;
         }
 
-        if ( ( separator == null ) || ( "".equals( separator ) ) ) {
+        if ( ( separator == null ) || ( EMPTY.equals( separator ) ) ) {
             // Split on whitespace.
             return splitWorker( str, null, max, preserveAllTokens ) ;
         }
@@ -2391,7 +2391,7 @@
                             end = len ;
                             substrings.add( str.substring( beg ) ) ;
                         } else {
-                            substrings.add( "" );
+                            substrings.add( EMPTY );
                         }
                     }
                     beg = end + separatorLength ;
@@ -3377,7 +3377,7 @@
         if (isEmpty(str) || isEmpty(remove)) {
             return str;
         }
-        return replace(str, remove, "", -1);
+        return replace(str, remove, EMPTY, -1);
     }
 
     /**
@@ -3856,7 +3856,7 @@
             return str;
         }
         if (replaceChars == null) {
-            replaceChars = "";
+            replaceChars = EMPTY;
         }
         boolean modified = false;
         int replaceCharsLength = replaceChars.length();


Reply via email to