aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorMichal Duda <michal.duda@sonarsource.com>2021-03-11 20:52:24 +0100
committersonartech <sonartech@sonarsource.com>2021-03-17 20:08:34 +0000
commit4e76eae61a9cc708dde1e71d1895dfbb810f63ce (patch)
tree1b268245f8ebfb51e23f00e2588e87ed2661690b /sonar-plugin-api/src
parentb65f41e7553d520a095509d3db7fca15302547f3 (diff)
downloadsonarqube-4e76eae61a9cc708dde1e71d1895dfbb810f63ce.tar.gz
sonarqube-4e76eae61a9cc708dde1e71d1895dfbb810f63ce.zip
SONAR-14192 Add optional return field 'deprecatedKeys' to /api/rules/search
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/LoadedActiveRule.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/LoadedActiveRule.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/LoadedActiveRule.java
index 6545401f083..ba8b8bb7eda 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/LoadedActiveRule.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/rule/LoadedActiveRule.java
@@ -20,6 +20,7 @@
package org.sonar.api.batch.rule;
import java.util.Map;
+import java.util.Set;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
import org.sonar.api.rule.RuleKey;
@@ -34,6 +35,11 @@ public class LoadedActiveRule {
private long updatedAt;
private String templateRuleKey;
private String internalKey;
+ private Set<RuleKey> deprecatedKeys;
+
+ public LoadedActiveRule() {
+ // nothing to do here
+ }
public RuleKey getRuleKey() {
return ruleKey;
@@ -108,4 +114,11 @@ public class LoadedActiveRule {
this.internalKey = internalKey;
}
+ public Set<RuleKey> getDeprecatedKeys() {
+ return deprecatedKeys;
+ }
+
+ public void setDeprecatedKeys(Set<RuleKey> deprecatedKeys) {
+ this.deprecatedKeys = deprecatedKeys;
+ }
}