Changeset 339:6fd747702b00 in livinglogic.java.ul4

Show
Ignore:
Timestamp:
02/08/11 14:46:06 (8 years ago)
Author:
Walter Doerwald <walter@…>
Branch:
default
Message:

split() result must be a list.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/src/com/livinglogic/ul4/Utils.java

    r338 r339  
    20632063                return Arrays.asList(StringUtils.split((String)obj)); 
    20642064            else if (arg instanceof String) 
    2065                 return StringUtils.splitByWholeSeparatorPreserveAllTokens((String)obj, (String)arg); 
     2065                return Arrays.asList(StringUtils.splitByWholeSeparatorPreserveAllTokens((String)obj, (String)arg)); 
    20662066        } 
    20672067        throw new UnsupportedOperationException(objectType(obj) + ".split(" + objectType(arg) + ") not supported!"); 
     
    20752075                return Arrays.asList(StringUtils.splitByWholeSeparator((String)obj, null, _toInt(arg2)+1)); 
    20762076            else if (arg1 instanceof String) 
    2077                 return StringUtils.splitByWholeSeparatorPreserveAllTokens((String)obj, (String)arg1, _toInt(arg2)+1); 
     2077                return Arrays.asList(StringUtils.splitByWholeSeparatorPreserveAllTokens((String)obj, (String)arg1, _toInt(arg2)+1)); 
    20782078        } 
    20792079        throw new UnsupportedOperationException(objectType(obj) + ".split(" + objectType(arg1) + ", " + objectType(arg2) + ") not supported!");