From 7aa9c21e34ca03e2b105fa274394d2d165486713 Mon Sep 17 00:00:00 2001 From: leonardo-pilastri-sonarsource <115481625+leonardo-pilastri-sonarsource@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:33:15 +0100 Subject: [PATCH] SONARJAVA-4904 S1301 Fix unused variable (#4722) --- .../org/sonar/java/checks/SwitchAtLeastThreeCasesCheck.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/java-checks/src/main/java/org/sonar/java/checks/SwitchAtLeastThreeCasesCheck.java b/java-checks/src/main/java/org/sonar/java/checks/SwitchAtLeastThreeCasesCheck.java index e131cadb7e5..b5788348583 100644 --- a/java-checks/src/main/java/org/sonar/java/checks/SwitchAtLeastThreeCasesCheck.java +++ b/java-checks/src/main/java/org/sonar/java/checks/SwitchAtLeastThreeCasesCheck.java @@ -21,7 +21,6 @@ import org.sonar.check.Rule; import org.sonar.plugins.java.api.IssuableSubscriptionVisitor; -import org.sonar.plugins.java.api.JavaFileScannerContext; import org.sonar.plugins.java.api.tree.CaseGroupTree; import org.sonar.plugins.java.api.tree.SwitchStatementTree; import org.sonar.plugins.java.api.tree.Tree; @@ -31,8 +30,6 @@ @Rule(key = "S1301") public class SwitchAtLeastThreeCasesCheck extends IssuableSubscriptionVisitor { - private JavaFileScannerContext context; - @Override public List nodesToVisit() { return List.of(Tree.Kind.SWITCH_STATEMENT);