diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-12-09 09:33:49 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2016-12-12 14:55:41 +0100 |
commit | ea21e551a7b27ca7c0ababba410941982ffbd523 (patch) | |
tree | 212cedbfa01af32c807b960358a7dd1ca4c76b33 /sonar-plugin-api | |
parent | 26a23900c46eb0d0e9352704710dd58c2e62f924 (diff) | |
download | sonarqube-ea21e551a7b27ca7c0ababba410941982ffbd523.tar.gz sonarqube-ea21e551a7b27ca7c0ababba410941982ffbd523.zip |
SONAR-7291 Rename IssueUpdater to IssueFieldsSetter
A new IssueUpdater used to update issue in db needs to be created
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RuleTagFormat.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RuleTagFormat.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RuleTagFormat.java index 149e73a27fe..60f35ca61b2 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RuleTagFormat.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/rule/RuleTagFormat.java @@ -39,9 +39,10 @@ public class RuleTagFormat { return StringUtils.isNotBlank(tag) && tag.matches(VALID_CHARACTERS_REGEX); } - public static void validate(String tag) { + public static String validate(String tag) { if (!isValid(tag)) { throw new IllegalArgumentException(String.format("Tag '%s' is invalid. Rule tags accept only the characters: a-z, 0-9, '+', '-', '#', '.'", tag)); } + return tag; } } |