From ea21e551a7b27ca7c0ababba410941982ffbd523 Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Fri, 9 Dec 2016 09:33:49 +0100 Subject: SONAR-7291 Rename IssueUpdater to IssueFieldsSetter A new IssueUpdater used to update issue in db needs to be created --- .../src/main/java/org/sonar/api/server/rule/RuleTagFormat.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sonar-plugin-api') 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; } } -- cgit v1.2.3