diff options
Diffstat (limited to 'sonar-batch/src/main/java/org/sonar/batch/rule/RulesProvider.java')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/rule/RulesProvider.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProvider.java b/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProvider.java index c886d93bf51..1895e6d103b 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProvider.java +++ b/sonar-batch/src/main/java/org/sonar/batch/rule/RulesProvider.java @@ -23,6 +23,7 @@ package org.sonar.batch.rule; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ListMultimap; import org.picocontainer.injectors.ProviderAdapter; +import org.sonar.api.batch.RequiresDB; import org.sonar.api.batch.debt.DebtCharacteristic; import org.sonar.api.batch.debt.DebtModel; import org.sonar.api.batch.debt.DebtRemediationFunction; @@ -39,11 +40,13 @@ import org.sonar.core.rule.RuleDto; import org.sonar.core.rule.RuleParamDto; import javax.annotation.Nullable; + import java.util.List; /** * Loads all enabled and non manual rules */ +@RequiresDB public class RulesProvider extends ProviderAdapter { private Rules singleton = null; |