Eat own dog food: Use EMPTY instead of "".

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@619115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2008-02-06 19:27:10 +00:00
parent fc734d1046
commit db456f2f89
1 changed files with 4 additions and 4 deletions

View File

@ -2351,7 +2351,7 @@ public class StringUtils {
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 @@ public class StringUtils {
end = len ;
substrings.add( str.substring( beg ) ) ;
} else {
substrings.add( "" );
substrings.add( EMPTY );
}
}
beg = end + separatorLength ;
@ -3377,7 +3377,7 @@ public class StringUtils {
if (isEmpty(str) || isEmpty(remove)) {
return str;
}
return replace(str, remove, "", -1);
return replace(str, remove, EMPTY, -1);
}
/**
@ -3856,7 +3856,7 @@ public class StringUtils {
return str;
}
if (replaceChars == null) {
replaceChars = "";
replaceChars = EMPTY;
}
boolean modified = false;
int replaceCharsLength = replaceChars.length();