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:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user