Changeset 3795 in josm


Ignore:
Timestamp:
Jan 21, 2011 11:56:43 AM (2 years ago)
Author:
bastiK
Message:

do not discard trailing empty strings in collection preference

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r3710 r3795  
    627627        String s = get(key); 
    628628        if(s != null && s.length() != 0) 
    629             return Arrays.asList(s.split("\u001e")); 
     629            return Arrays.asList(s.split("\u001e", -1)); 
    630630        return def; 
    631631    } 
     
    641641        String s = get(key); 
    642642        if (s != null && s.length() != 0) 
    643             return Arrays.asList(s.split("\u001e")); 
     643            return Arrays.asList(s.split("\u001e", -1)); 
    644644        return Collections.emptyList(); 
    645645    } 
Note: See TracChangeset for help on using the changeset viewer.