From 943bf5ab5bb5d72da3038284a8571c3620413691 Mon Sep 17 00:00:00 2001 From: Dennis Gove Date: Sat, 17 Jun 2017 22:12:23 -0400 Subject: [PATCH] SOLR-10882: Fixes use of Lists in evaluators --- .../org/apache/solr/client/solrj/io/eval/ArrayEvaluator.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ArrayEvaluator.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ArrayEvaluator.java index 065335bdcbd..127f5874a7f 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ArrayEvaluator.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ArrayEvaluator.java @@ -18,6 +18,7 @@ package org.apache.solr.client.solrj.io.eval; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.Comparator; import java.util.List; import java.util.Locale; @@ -33,15 +34,13 @@ import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionParameter; import org.apache.solr.client.solrj.io.stream.expr.StreamExpressionValue; import org.apache.solr.client.solrj.io.stream.expr.StreamFactory; -import com.google.common.collect.Lists; - public class ArrayEvaluator extends ComplexEvaluator implements Expressible { private static final long serialVersionUID = 1; private String sortOrder; public ArrayEvaluator(StreamExpression expression, StreamFactory factory) throws IOException { - super(expression, factory, Lists.newArrayList("sort")); + super(expression, factory, Arrays.asList("sort")); sortOrder = extractSortOrder(expression, factory); }