diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-06-19 23:25:55 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-06-19 23:26:57 +0200 |
commit | 369f12960fba6653e630042ab977c97e479a3076 (patch) | |
tree | c3896b2a5f2caf4fdc8037567a862e810b43b38f /sonar-deprecated/src/main/java | |
parent | 71a6a922a2d07ae8db9f13036a9653e772380762 (diff) | |
download | sonarqube-369f12960fba6653e630042ab977c97e479a3076.tar.gz sonarqube-369f12960fba6653e630042ab977c97e479a3076.zip |
SONAR-5389 Add support of FileLinesContextFactory + publish analysis
Diffstat (limited to 'sonar-deprecated/src/main/java')
-rw-r--r-- | sonar-deprecated/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java | 3 | ||||
-rw-r--r-- | sonar-deprecated/src/main/java/org/sonar/api/checks/CheckFactory.java | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java b/sonar-deprecated/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java index 2887b923247..5ea3909e9a4 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/checks/AnnotationCheckFactory.java @@ -21,6 +21,7 @@ package org.sonar.api.checks; import com.google.common.collect.Maps; import org.apache.commons.lang.StringUtils; +import org.sonar.api.batch.rule.Checks; import org.sonar.api.profiles.RulesProfile; import org.sonar.api.rules.ActiveRule; import org.sonar.api.rules.ActiveRuleParam; @@ -37,7 +38,9 @@ import java.util.Map; /** * @since 2.3 + * @deprecated since 4.2 use {@link Checks} */ +@Deprecated public final class AnnotationCheckFactory extends CheckFactory { private static final String CAN_NOT_INSTANTIATE_THE_CHECK_RELATED_TO_THE_RULE = "Can not instantiate the check related to the rule "; diff --git a/sonar-deprecated/src/main/java/org/sonar/api/checks/CheckFactory.java b/sonar-deprecated/src/main/java/org/sonar/api/checks/CheckFactory.java index 0dd57620321..c6ad3b45092 100644 --- a/sonar-deprecated/src/main/java/org/sonar/api/checks/CheckFactory.java +++ b/sonar-deprecated/src/main/java/org/sonar/api/checks/CheckFactory.java @@ -28,9 +28,11 @@ import java.util.Map; /** * @since 2.3 + * @deprecated since 4.2 use {@link org.sonar.api.batch.rule.CheckFactory} */ +@Deprecated public abstract class CheckFactory<C> { - + private Map<ActiveRule, C> checkByActiveRule = Maps.newIdentityHashMap(); private Map<C, ActiveRule> activeRuleByCheck = Maps.newIdentityHashMap(); private RulesProfile profile; |