From 16476c9a7af74bbd3b732201c477f2968e00858d Mon Sep 17 00:00:00 2001 From: sampreethb Date: Wed, 1 Jul 2026 22:06:50 -0700 Subject: [PATCH] Remove unused AutoRepairService import in AutoRepairTest Fixes checkstyle-test failure: [ERROR] test/unit/.../AutoRepairTest.java:43:8: Unused import - org.apache.cassandra.service.AutoRepairService. [UnusedImports] Import was inadvertently pulled in during the CASSANDRA-21115 cherry-pick conflict resolution (union of imports). It is used only on trunk (5.1), where the @Before setup() calls AutoRepairService.setup(); this branch does not have that call. Verified locally: `ant checkstyle checkstyle-test` clean; AutoRepairTest still 9/9 passing. Co-authored-by: Cursor --- .../org/apache/cassandra/repair/autorepair/AutoRepairTest.java | 1 - 1 file changed, 1 deletion(-) diff --git a/test/unit/org/apache/cassandra/repair/autorepair/AutoRepairTest.java b/test/unit/org/apache/cassandra/repair/autorepair/AutoRepairTest.java index ccd2ec3ef4..6c49b7659b 100644 --- a/test/unit/org/apache/cassandra/repair/autorepair/AutoRepairTest.java +++ b/test/unit/org/apache/cassandra/repair/autorepair/AutoRepairTest.java @@ -40,7 +40,6 @@ import org.apache.cassandra.repair.autorepair.AutoRepairConfig.RepairType; import org.apache.cassandra.schema.SchemaConstants; import org.apache.cassandra.schema.SchemaTestUtil; import org.apache.cassandra.schema.SystemDistributedKeyspace; -import org.apache.cassandra.service.AutoRepairService; import org.apache.cassandra.service.StorageService; import org.apache.cassandra.utils.FBUtilities;