From f6622ef3748587a1636aeab046d4597cb475a18a Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Mon, 26 Sep 2016 21:59:31 +0530 Subject: [PATCH] SOLR-9557: reverting an optimization --- solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java | 3 --- 1 file changed, 3 deletions(-) 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.java index d41417796fe..995e142e1c2 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 @@ -26,8 +26,6 @@ import java.util.Locale; import org.apache.solr.common.SolrException; -import static java.util.Collections.singletonList; - /** * */ @@ -41,7 +39,6 @@ public class StrUtils { * outside strings. */ public static List splitSmart(String s, char separator) { - if(s.indexOf(separator) == -1) return singletonList(s); ArrayList lst = new ArrayList<>(4); int pos=0, start=0, end=s.length(); char inString=0;