diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2022-01-05 16:17:09 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-02-02 20:02:54 +0000 |
commit | a53007e8246c8d44b0c9af4bd3757313c48dd230 (patch) | |
tree | c53786ac80233b0296ee345e11d64bb762e5b463 /sonar-scanner-engine/src/main/java/org/sonar/scanner/issue | |
parent | e6afd7889c39e6b9db5e62ee5f850eae598ba62d (diff) | |
download | sonarqube-a53007e8246c8d44b0c9af4bd3757313c48dd230.tar.gz sonarqube-a53007e8246c8d44b0c9af4bd3757313c48dd230.zip |
SONAR-15966 Use Spring instead of Pico as dependency injection framework in the scanner-engine
Co-authored-by: Zipeng WU <zipeng.wu@sonarsource.com>
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/issue')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssueFilters.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssueFilters.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssueFilters.java index ecaaa7d8f1b..1d850c39a4d 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssueFilters.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/issue/IssueFilters.java @@ -25,6 +25,7 @@ import org.sonar.api.scan.issue.filter.FilterableIssue; import org.sonar.api.scan.issue.filter.IssueFilter; import org.sonar.api.scan.issue.filter.IssueFilterChain; import org.sonar.scanner.protocol.output.ScannerReport; +import org.springframework.beans.factory.annotation.Autowired; /** * @deprecated since 7.6, {@link IssueFilter} is deprecated @@ -34,11 +35,13 @@ public class IssueFilters { private final IssueFilterChain filterChain; private final DefaultInputProject project; + @Autowired(required = false) public IssueFilters(DefaultInputProject project, IssueFilter[] exclusionFilters) { this.project = project; this.filterChain = new DefaultIssueFilterChain(exclusionFilters); } + @Autowired(required = false) public IssueFilters(DefaultInputProject project) { this(project, new IssueFilter[0]); } |