mirror of https://github.com/apache/lucene.git
SOLR-14042: Fix varargs precommit warnings
This commit is contained in:
parent
b1c6d7c0c3
commit
7cfa31b103
|
@ -125,7 +125,7 @@ New Features
|
|||
|
||||
Improvements
|
||||
---------------------
|
||||
(No changes)
|
||||
* SOLR-14042: Fix varargs precommit warnings (Andraas Salamon via Jason Gerlowski)
|
||||
|
||||
Optimizations
|
||||
---------------------
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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.");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue