aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2023-12-19 10:13:02 +0100
committersonartech <sonartech@sonarsource.com>2024-01-04 20:02:48 +0000
commitcd59a269218256fbd43e3e1573d0319b4253e245 (patch)
tree1c3692b40d686ae7e28e3f3078fffd051f71b22d /sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap
parent7839d6e3c8fd4045efca1b4cb76db0709189965f (diff)
downloadsonarqube-cd59a269218256fbd43e3e1573d0319b4253e245.tar.gz
sonarqube-cd59a269218256fbd43e3e1573d0319b4253e245.zip
SONAR-21195 Make DefaultLanguagesRepository more suitable for tests
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java
index efee457d5a1..ee7abecf165 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/SpringScannerContainer.java
@@ -86,8 +86,8 @@ import org.sonar.scanner.repository.DefaultQualityProfileLoader;
import org.sonar.scanner.repository.ProjectRepositoriesProvider;
import org.sonar.scanner.repository.QualityProfilesProvider;
import org.sonar.scanner.repository.ReferenceBranchSupplier;
+import org.sonar.scanner.repository.language.DefaultLanguagesLoader;
import org.sonar.scanner.repository.language.DefaultLanguagesRepository;
-import org.sonar.scanner.repository.language.LanguagesRepository;
import org.sonar.scanner.repository.settings.DefaultProjectSettingsLoader;
import org.sonar.scanner.rule.ActiveRulesProvider;
import org.sonar.scanner.rule.DefaultActiveRulesLoader;
@@ -304,10 +304,9 @@ public class SpringScannerContainer extends SpringComponentContainer {
add(DefaultProjectSettingsLoader.class,
DefaultActiveRulesLoader.class,
DefaultQualityProfileLoader.class,
- DefaultProjectRepositoriesLoader.class);
-
- addIfMissing(DefaultLanguagesRepository.class, LanguagesRepository.class);
-
+ DefaultProjectRepositoriesLoader.class,
+ DefaultLanguagesLoader.class,
+ DefaultLanguagesRepository.class);
}
static ExtensionMatcher getScannerProjectExtensionsFilter() {