Use isBlank instead of matches.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1779 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
andrzej
2006-02-01 23:19:53 +00:00
parent 9c81cbfaae
commit 49ed5e05c3
+1 -1
View File
@@ -1187,7 +1187,7 @@ public class StringUtil
public static String[] split (String source, String sep)
{
// handle the special case of a zero-component source
if (source.matches("\\s*")) {
if (isBlank(source)) {
return new String[0];
}