From 0d02c81aa01624ff348b01257ecf7288bbbe0a16 Mon Sep 17 00:00:00 2001 From: quentin-jaquier-sonarsource Date: Mon, 16 May 2022 10:45:23 +0200 Subject: [PATCH] Remove redundant assignment to field --- .../org/sonar/java/testing/JavaFileScannerContextForTests.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/java-frontend/src/main/java/org/sonar/java/testing/JavaFileScannerContextForTests.java b/java-frontend/src/main/java/org/sonar/java/testing/JavaFileScannerContextForTests.java index 9f21e7e1161..3fd5ea46336 100644 --- a/java-frontend/src/main/java/org/sonar/java/testing/JavaFileScannerContextForTests.java +++ b/java-frontend/src/main/java/org/sonar/java/testing/JavaFileScannerContextForTests.java @@ -46,13 +46,11 @@ public class JavaFileScannerContextForTests extends DefaultJavaFileScannerContex private final Set issues = new LinkedHashSet<>(); private final Map> quickFixes = new HashMap<>(); - private final SonarComponents sonarComponents; public JavaFileScannerContextForTests(CompilationUnitTree tree, InputFile inputFile, Sema semanticModel, @Nullable SonarComponents sonarComponents, JavaVersion javaVersion, boolean failedParsing, boolean inAndroidContext, @Nullable CacheContext cacheContext) { super(tree, inputFile, semanticModel, sonarComponents, javaVersion, failedParsing, inAndroidContext, cacheContext); - this.sonarComponents = sonarComponents; } public Set getIssues() {