mirror of https://github.com/apache/lucene.git
SOLR-9557: reverting an optimization
This commit is contained in:
parent
7a6567e4a6
commit
f6622ef374
|
@ -26,8 +26,6 @@ import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.solr.common.SolrException;
|
import org.apache.solr.common.SolrException;
|
||||||
|
|
||||||
import static java.util.Collections.singletonList;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -41,7 +39,6 @@ public class StrUtils {
|
||||||
* outside strings.
|
* outside strings.
|
||||||
*/
|
*/
|
||||||
public static List<String> splitSmart(String s, char separator) {
|
public static List<String> splitSmart(String s, char separator) {
|
||||||
if(s.indexOf(separator) == -1) return singletonList(s);
|
|
||||||
ArrayList<String> lst = new ArrayList<>(4);
|
ArrayList<String> lst = new ArrayList<>(4);
|
||||||
int pos=0, start=0, end=s.length();
|
int pos=0, start=0, end=s.length();
|
||||||
char inString=0;
|
char inString=0;
|
||||||
|
|
Loading…
Reference in New Issue