diff options
author | Matteo Mara <matteo.mara@sonarsource.com> | 2023-12-19 10:13:02 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2024-01-04 20:02:48 +0000 |
commit | cd59a269218256fbd43e3e1573d0319b4253e245 (patch) | |
tree | 1c3692b40d686ae7e28e3f3078fffd051f71b22d /sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap | |
parent | 7839d6e3c8fd4045efca1b4cb76db0709189965f (diff) | |
download | sonarqube-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.java | 9 |
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() { |