lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerlowsk...@apache.org
Subject [lucene-solr] branch branch_8x updated: SOLR-14042: Fix varargs precommit warnings
Date Thu, 19 Dec 2019 15:15:16 GMT
This is an automated email from the ASF dual-hosted git repository.

gerlowskija pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/branch_8x by this push:
     new 5270b17  SOLR-14042: Fix varargs precommit warnings
5270b17 is described below

commit 5270b17a3b465d38672775598c78515e00d4a457
Author: Jason Gerlowski <gerlowskija@apache.org>
AuthorDate: Thu Dec 19 09:08:22 2019 -0500

    SOLR-14042: Fix varargs precommit warnings
---
 solr/CHANGES.txt                                                        | 2 +-
 .../src/java/org/apache/solr/client/solrj/io/eval/ConcatEvaluator.java  | 2 +-
 .../src/java/org/apache/solr/client/solrj/io/eval/DateEvaluator.java    | 2 +-
 .../src/java/org/apache/solr/client/solrj/io/eval/DbscanEvaluator.java  | 2 +-
 .../solr/client/solrj/io/eval/EmpiricalDistributionEvaluator.java       | 2 +-
 .../src/java/org/apache/solr/client/solrj/io/eval/MatchesEvaluator.java | 2 +-
 .../src/java/org/apache/solr/client/solrj/io/eval/PivotEvaluator.java   | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index f642be9..58488c4 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -45,7 +45,7 @@ New Features
 
 Improvements
 ---------------------
-(No changes)
+* SOLR-14042: Fix varargs precommit warnings (Andraas Salamon via Jason Gerlowski)
 
 Optimizations
 ---------------------
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ConcatEvaluator.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ConcatEvaluator.java
index 124faf5..474c602 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ConcatEvaluator.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/ConcatEvaluator.java
@@ -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();
 
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DateEvaluator.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DateEvaluator.java
index 582e3b6..189b0e9 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DateEvaluator.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DateEvaluator.java
@@ -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();
 
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DbscanEvaluator.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DbscanEvaluator.java
index 97dd1ca..5467e25 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DbscanEvaluator.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/DbscanEvaluator.java
@@ -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;
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/EmpiricalDistributionEvaluator.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/EmpiricalDistributionEvaluator.java
index 19da016..50bd62b 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/EmpiricalDistributionEvaluator.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/EmpiricalDistributionEvaluator.java
@@ -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());
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/MatchesEvaluator.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/MatchesEvaluator.java
index 0436f51..362a814 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/MatchesEvaluator.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/MatchesEvaluator.java
@@ -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) {
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/PivotEvaluator.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/PivotEvaluator.java
index 919db14..7666650 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/PivotEvaluator.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/eval/PivotEvaluator.java
@@ -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.");
     }


Mime
View raw message