From efc2cfe09a0952a0c6d1566a10eac41e563007ce Mon Sep 17 00:00:00 2001 From: Jakub Scholz Date: Sun, 1 Sep 2024 21:13:58 +0200 Subject: [PATCH] Move JavaDoc validation to Checkstyle Signed-off-by: Jakub Scholz --- .checkstyle/checkstyle.xml | 31 +++++++++++++++++++ .checkstyle/suppressions.xml | 9 ++++++ api/pom.xml | 3 -- .../model/KafkaMirrorMaker2Cluster.java | 4 +++ .../operator/assembly/AbstractOperator.java | 8 +++++ pom.xml | 11 +++---- test/pom.xml | 8 ----- .../CruiseControlClientImpl.java | 1 + 8 files changed, 57 insertions(+), 18 deletions(-) diff --git a/.checkstyle/checkstyle.xml b/.checkstyle/checkstyle.xml index aa1c7d34b37..9a9003e1879 100644 --- a/.checkstyle/checkstyle.xml +++ b/.checkstyle/checkstyle.xml @@ -137,6 +137,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.checkstyle/suppressions.xml b/.checkstyle/suppressions.xml index ae3b7faf7d8..39660c83031 100644 --- a/.checkstyle/suppressions.xml +++ b/.checkstyle/suppressions.xml @@ -33,4 +33,13 @@ + + + + + + + + + \ No newline at end of file diff --git a/api/pom.xml b/api/pom.xml index cd9fb7d0f77..c7d1109f02e 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -19,9 +19,6 @@ 11 - - false - ${basedir}${file.separator}.. diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaMirrorMaker2Cluster.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaMirrorMaker2Cluster.java index 3f1d5aedab9..722172fbd28 100644 --- a/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaMirrorMaker2Cluster.java +++ b/cluster-operator/src/main/java/io/strimzi/operator/cluster/model/KafkaMirrorMaker2Cluster.java @@ -158,6 +158,10 @@ private static KafkaConnectSpec buildKafkaConnectSpec(KafkaMirrorMaker2Spec spec } + /** + * @return Name of the ClusterRoleBinding + */ + @Override public String getInitContainerClusterRoleBindingName() { return KafkaMirrorMaker2Resources.initContainerClusterRoleBindingName(cluster, namespace); } diff --git a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/AbstractOperator.java b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/AbstractOperator.java index 7e9570d41b2..9e961d8b9d9 100644 --- a/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/AbstractOperator.java +++ b/cluster-operator/src/main/java/io/strimzi/operator/cluster/operator/assembly/AbstractOperator.java @@ -468,6 +468,14 @@ private Future releaseLockAndTimer(Reconciliation reconciliation, Lock loc return Future.succeededFuture(); } + /** + * Find the names of all resources that should be reconciled + * + * @param namespace The namespace where the resources should be looked up + * + * @return A future with a set of resources found in given namespace + */ + @Override public Future> allResourceNames(String namespace) { return resourceOperator.listAsync(namespace, selector()) .map(resourceList -> diff --git a/pom.xml b/pom.xml index 5c0a3208968..721cc802676 100644 --- a/pom.xml +++ b/pom.xml @@ -91,9 +91,6 @@ UTF-8 17 - - true - ${basedir} @@ -103,11 +100,11 @@ 3.1.2 3.4.2 3.4.1 - 3.4.1 + 3.10.0 3.0.1 3.3.0 1.6 - 3.3.0 + 3.5.0 3.0.0-M2 3.1.0 1.7.0 @@ -117,7 +114,7 @@ 3.1.0 - 10.12.2 + 10.18.1 4.7.3 0.200.0 1.18.32 @@ -1169,7 +1166,7 @@ ${project.build.sourceDirectory}:${project.build.directory}/generated-sources/annotations public true - ${javadoc.fail.on.warnings} + false diff --git a/test/pom.xml b/test/pom.xml index 901711e73a3..7ad1fa1c1f5 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -107,14 +107,6 @@ - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven.javadoc.version} - - none - - org.apache.maven.plugins maven-dependency-plugin diff --git a/topic-operator/src/main/java/io/strimzi/operator/topic/cruisecontrol/CruiseControlClientImpl.java b/topic-operator/src/main/java/io/strimzi/operator/topic/cruisecontrol/CruiseControlClientImpl.java index ae904b9508c..e96cee52468 100644 --- a/topic-operator/src/main/java/io/strimzi/operator/topic/cruisecontrol/CruiseControlClientImpl.java +++ b/topic-operator/src/main/java/io/strimzi/operator/topic/cruisecontrol/CruiseControlClientImpl.java @@ -192,6 +192,7 @@ public UserTasksResponse userTasks(Set userTaskIds) { }).join(); } + @Override public Optional errorMessage(HttpResponse response) { if (response != null) { if (response.statusCode() == 401) {