Skip to content

Commit

Permalink
SONARJAVA-4904 S1301 Fix unused variable (#4722)
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardo-pilastri-sonarsource authored Mar 18, 2024
1 parent b0b57a4 commit 7aa9c21
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,8 +30,6 @@
@Rule(key = "S1301")
public class SwitchAtLeastThreeCasesCheck extends IssuableSubscriptionVisitor {

private JavaFileScannerContext context;

@Override
public List<Tree.Kind> nodesToVisit() {
return List.of(Tree.Kind.SWITCH_STATEMENT);
Expand Down

0 comments on commit 7aa9c21

Please sign in to comment.