diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-02-07 11:43:26 +0100 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2018-02-09 15:20:19 +0100 |
commit | 72f64c95fdef18ec950d341c1a9093f30087e1c1 (patch) | |
tree | cd3930546c2f58bf16969e304f358bd8b4aefad1 /sonar-plugin-api | |
parent | 32a783743d56e48557c596cf290f5d72166150cd (diff) | |
download | sonarqube-72f64c95fdef18ec950d341c1a9093f30087e1c1.tar.gz sonarqube-72f64c95fdef18ec950d341c1a9093f30087e1c1.zip |
SONAR-10410 Rule#getSystemTags is populated with definition tags
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java index ea1949354e2..e5deb9fab7d 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/Rule.java @@ -400,6 +400,11 @@ public class Rule { return systemTags == null ? new String[0] : StringUtils.split(systemTags, ','); } + public Rule setSystemTags(String[] tags) { + this.systemTags = tags == null ? null : StringUtils.join(tags, ','); + return this; + } + /** * For internal use only. * |