SOLR-14042: Fix varargs precommit warnings

This commit is contained in:
Jason Gerlowski 2019-12-19 09:08:22 -05:00
parent b1c6d7c0c3
commit 7cfa31b103
7 changed files with 7 additions and 7 deletions

View File

@ -125,7 +125,7 @@ New Features
Improvements
---------------------
(No changes)
* SOLR-14042: Fix varargs precommit warnings (Andraas Salamon via Jason Gerlowski)
Optimizations
---------------------

View File

@ -43,7 +43,7 @@ public class ConcatEvaluator extends RecursiveObjectEvaluator implements ManyVal
}
@Override
public Object doWork(Object values[]) throws IOException {
public Object doWork(Object... values) throws IOException {
StringBuilder buff = new StringBuilder();

View File

@ -41,7 +41,7 @@ public class DateEvaluator extends RecursiveObjectEvaluator implements ManyValue
}
@Override
public Object doWork(Object values[]) throws IOException {
public Object doWork(Object... values) throws IOException {
String sdate = values[0].toString();
String template = values[1].toString();

View File

@ -41,7 +41,7 @@ public class DbscanEvaluator extends RecursiveObjectEvaluator implements ManyVal
}
@Override
public Object doWork(Object values[]) throws IOException {
public Object doWork(Object... values) throws IOException {
Matrix matrix = null;
double e = 0;

View File

@ -38,7 +38,7 @@ public class EmpiricalDistributionEvaluator extends RecursiveNumericEvaluator im
}
@Override
public Object doWork(Object[] values) throws IOException {
public Object doWork(Object... values) throws IOException {
if(!(values[0] instanceof List<?>)){
throw new StreamEvaluatorException("List value expected but found type %s for value %s", values[0].getClass().getName(), values[0].toString());

View File

@ -36,7 +36,7 @@ public class MatchesEvaluator extends RecursiveBooleanEvaluator implements ManyV
}
}
public Object doWork(Object[] values) throws IOException {
public Object doWork(Object... values) throws IOException {
if(values[1] instanceof String) {
String s = values[0].toString();
if(pattern == null) {

View File

@ -42,7 +42,7 @@ public class PivotEvaluator extends RecursiveObjectEvaluator implements ManyValu
}
@Override
public Object doWork(Object[] values) throws IOException {
public Object doWork(Object... values) throws IOException {
if(values.length != 4) {
throw new IOException("The pivot function requires four parameters.");
}