From 1e217ee78564d9c508e2af21fe85fc2aa118743f Mon Sep 17 00:00:00 2001 From: "Xu Han@AutoMQ" Date: Thu, 21 Nov 2024 18:50:08 +0800 Subject: [PATCH] chore(workflow): add spotless check (#2168) chore(workflow): spotless check Signed-off-by: Robin Han --- .github/workflows/build_automq.yml | 2 +- .../java/org/apache/kafka/tools/automq/perf/TopicService.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_automq.yml b/.github/workflows/build_automq.yml index d33df8a6a6..e3ccaf5f68 100644 --- a/.github/workflows/build_automq.yml +++ b/.github/workflows/build_automq.yml @@ -49,7 +49,7 @@ jobs: - name: Setup Gradle uses: gradle/gradle-build-action@v2.9.0 - name: Checkstyle - run: ./gradlew --build-cache rat checkstyleMain checkstyleTest + run: ./gradlew --build-cache rat checkstyleMain checkstyleTest spotlessJavaCheck spotbugs: name: "Spotbugs" runs-on: ${{ matrix.os }} diff --git a/tools/src/main/java/org/apache/kafka/tools/automq/perf/TopicService.java b/tools/src/main/java/org/apache/kafka/tools/automq/perf/TopicService.java index 85f6f2c45c..b644f03a81 100644 --- a/tools/src/main/java/org/apache/kafka/tools/automq/perf/TopicService.java +++ b/tools/src/main/java/org/apache/kafka/tools/automq/perf/TopicService.java @@ -11,7 +11,6 @@ package org.apache.kafka.tools.automq.perf; -import com.google.common.collect.Lists; import org.apache.kafka.clients.admin.Admin; import org.apache.kafka.clients.admin.AdminClientConfig; import org.apache.kafka.clients.admin.CreateTopicsResult; @@ -21,6 +20,8 @@ import org.apache.kafka.common.TopicPartition; import org.apache.kafka.common.errors.TopicExistsException; +import com.google.common.collect.Lists; + import org.slf4j.Logger; import org.slf4j.LoggerFactory;