Authored by LUOXC

fixbug

... ... @@ -19,7 +19,7 @@ public class Strings {
public static List<Integer> split(String str, String delimiter) {
List<Integer> values = null;
if (org.apache.commons.lang3.StringUtils.isNotEmpty(str)) {
values = Splitter.on(delimiter).splitToList(str).stream().map(Integer::valueOf).collect(Collectors.toList());
values = Splitter.on(delimiter).omitEmptyStrings().splitToList(str).stream().map(Integer::valueOf).collect(Collectors.toList());
}
return values;
}
... ...