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() {