Details
Description
StringUtils.split ignores empty items (eg. delimiter at the beginning of the
string, 2 delimiters directly after another)
Eg.
String[] l = StringUtils.split("X,DE,Germany", ",");
results in
l[0] = "X"
l[1] = "DE"
l[2] = "Germany"
String[] l = StringUtils.split(",DE,Germany", ",");
results in
l[0] = "DE"
l[1] = "Germany"
expected :
l[0] = "" (or null ?)
l[1] = "DE"
l[2] = "Germany"
The current behaviour makes it impossible to detect the "column" (eg. for
parsing .csv files).