From 2305ccef43f22b80ac35e58690882f356792f78b Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Fri, 18 Sep 2015 22:02:38 +0200 Subject: [PATCH] Remove forbidden API usage --- .../org/elasticsearch/index/query/TermsQueryBuilder.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java b/core/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java index 08d006ab34b..cea700b9463 100644 --- a/core/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java +++ b/core/src/main/java/org/elasticsearch/index/query/TermsQueryBuilder.java @@ -19,9 +19,6 @@ package org.elasticsearch.index.query; -import com.google.common.primitives.Doubles; -import com.google.common.primitives.Floats; -import com.google.common.primitives.Ints; import org.apache.lucene.index.Term; import org.apache.lucene.queries.TermsQuery; import org.apache.lucene.search.BooleanClause; @@ -92,7 +89,7 @@ public class TermsQueryBuilder extends AbstractQueryBuilder { * @param values The terms */ public TermsQueryBuilder(String fieldName, int... values) { - this(fieldName, values != null ? Ints.asList(values) : (Iterable) null); + this(fieldName, values != null ? Arrays.asList(values) : (Iterable) null); } /** @@ -119,7 +116,7 @@ public class TermsQueryBuilder extends AbstractQueryBuilder { * @param values The terms */ public TermsQueryBuilder(String fieldName, float... values) { - this(fieldName, values != null ? Floats.asList(values) : (Iterable) null); + this(fieldName, values != null ? Arrays.asList(values) : (Iterable) null); } /** @@ -129,7 +126,7 @@ public class TermsQueryBuilder extends AbstractQueryBuilder { * @param values The terms */ public TermsQueryBuilder(String fieldName, double... values) { - this(fieldName, values != null ? Doubles.asList(values) : (Iterable) null); + this(fieldName, values != null ? Arrays.asList(values) : (Iterable) null); } /**