SOLR-13484: ref guide

This commit is contained in:
Noble Paul 2019-05-23 17:06:29 +10:00
parent 975a4f8f55
commit e9d9f4dcc1
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ public class StrUtils {
public static List<String> splitSmart(String s, char separator, boolean trimEmpty) {
List<String> l = splitSmart(s, separator);
if (l.size() > 0 && l.get(0).isEmpty()) l.remove(0);
if(trimEmpty){
if (l.size() > 0 && l.get(0).isEmpty()) l.remove(0);
}
return l;
}