You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by kr...@apache.org on 2022/10/25 01:38:08 UTC

[solr] 05/10: SOLR-16427: Evaluate and fix errorprone rules - InvalidParam

This is an automated email from the ASF dual-hosted git repository.

krisden pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/solr.git

commit 09eb4167b113b1406511d37f0096a5b53e08c91d
Author: Kevin Risden <kr...@apache.org>
AuthorDate: Thu Oct 20 16:49:35 2022 -0400

    SOLR-16427: Evaluate and fix errorprone rules - InvalidParam
---
 gradle/validation/error-prone.gradle                                     | 1 -
 .../src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java             | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradle/validation/error-prone.gradle b/gradle/validation/error-prone.gradle
index 9be7a74d2e6..27ca81117e8 100644
--- a/gradle/validation/error-prone.gradle
+++ b/gradle/validation/error-prone.gradle
@@ -100,7 +100,6 @@ allprojects { prj ->
             '-Xep:InputStreamSlowMultibyteRead:OFF',
             '-Xep:IntLongMath:OFF',
             '-Xep:InvalidBlockTag:OFF', // this is needed for tags like lucene.internal
-            '-Xep:InvalidParam:OFF',
             '-Xep:JavaLangClash:OFF',
             '-Xep:JavaUtilDate:OFF',
             '-Xep:JdkObsolete:OFF',
diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java b/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java
index 731c35c0230..9de548c2ec3 100644
--- a/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java
+++ b/solr/test-framework/src/java/org/apache/solr/cloud/MiniSolrCloudCluster.java
@@ -1134,6 +1134,7 @@ public class MiniSolrCloudCluster {
       return this;
     }
 
+    @SuppressWarnings("InvalidParam")
     /**
      * Force the cluster Collection and config state API execution as well as the cluster state
      * update strategy to be either Overseer based or distributed. <b>This method can be useful when