You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2016/09/26 16:29:42 UTC

lucene-solr:master: SOLR-9557: reverting an optimization

Repository: lucene-solr
Updated Branches:
  refs/heads/master 7a6567e4a -> f6622ef37


SOLR-9557: reverting an optimization


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f6622ef3
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f6622ef3
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f6622ef3

Branch: refs/heads/master
Commit: f6622ef3748587a1636aeab046d4597cb475a18a
Parents: 7a6567e
Author: Noble Paul <no...@apache.org>
Authored: Mon Sep 26 21:59:31 2016 +0530
Committer: Noble Paul <no...@apache.org>
Committed: Mon Sep 26 21:59:31 2016 +0530

----------------------------------------------------------------------
 solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f6622ef3/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java
----------------------------------------------------------------------
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 d414177..995e142 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<String> splitSmart(String s, char separator) {
-    if(s.indexOf(separator) == -1) return singletonList(s);
     ArrayList<String> lst = new ArrayList<>(4);
     int pos=0, start=0, end=s.length();
     char inString=0;