aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2018-10-11 11:35:06 +0200
committerSonarTech <sonartech@sonarsource.com>2018-10-11 20:20:54 +0200
commit5666430ddc9fb043313be01045fd93208033acbd (patch)
tree3335d52643fb073605e963153c4ac2be4f4664f4 /sonar-plugin-api/src
parente581d9bf12be654518a355e2a6cc4e360a4f231e (diff)
downloadsonarqube-5666430ddc9fb043313be01045fd93208033acbd.tar.gz
sonarqube-5666430ddc9fb043313be01045fd93208033acbd.zip
SONAR-11218 Drop RuleFinder implementation on scanner side and remove deprecation
Also deprecate Rules, that should be ultimately removed.
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Rules.java2
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Rules.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Rules.java
index 351be47f240..ebea46de65f 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Rules.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/Rules.java
@@ -32,7 +32,9 @@ import java.util.Collection;
* be extended by plugins.
*
* @since 4.2
+ * @deprecated since 7.4 we plan to stop loading rules on scanner side
*/
+@Deprecated
@ScannerSide
@Immutable
public interface Rules {
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java
index 744543e67e3..518d13a42c7 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/RuleFinder.java
@@ -21,18 +21,16 @@ package org.sonar.api.rules;
import java.util.Collection;
import javax.annotation.CheckForNull;
-import org.sonar.api.batch.ScannerSide;
import org.sonar.api.batch.rule.ActiveRules;
-import org.sonar.api.rule.RuleKey;
import org.sonar.api.ce.ComputeEngineSide;
+import org.sonar.api.rule.RuleKey;
import org.sonar.api.server.ServerSide;
/**
+ * Used in {@link org.sonar.api.profiles.ProfileExporter} and {@link org.sonar.api.profiles.ProfileImporter}
+ * Use {@link ActiveRules} on scanner side.
* @since 2.3
- * @deprecated since 5.1. Use {@link ActiveRules} on batch side.
*/
-@Deprecated
-@ScannerSide
@ServerSide
@ComputeEngineSide
public interface RuleFinder {