Apache Solr open-source search software
SOLR-13484: ref guide
Noble Paule9d9f4dcc12f
diff --git a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.javaindex aa382821c10..c0b19f57f7a 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java@@ -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;}