Rule messages can no longer be declared in Java
This caused problems with the RuleSetWriter. Schade.
This commit is contained in:
@ -186,11 +186,6 @@ public class RuleBuilder {
|
||||
rule.setLanguage(language);
|
||||
}
|
||||
|
||||
// The message can be set in Java, but the XML takes precedence
|
||||
if (!StringUtils.isBlank(message)) {
|
||||
rule.setMessage(message);
|
||||
}
|
||||
|
||||
loadLanguageMinMaxVersions(rule);
|
||||
rule.setSince(since);
|
||||
rule.setExternalInfoUrl(externalInfoUrl);
|
||||
|
@ -146,10 +146,6 @@ public class RuleFactory {
|
||||
builder.since(ruleElement.getAttribute(SINCE));
|
||||
}
|
||||
|
||||
if (ruleElement.hasAttribute(MESSAGE)) {
|
||||
builder.message(ruleElement.getAttribute(MESSAGE));
|
||||
}
|
||||
|
||||
builder.externalInfoUrl(ruleElement.getAttribute(EXTERNAL_INFO_URL));
|
||||
builder.setDeprecated(hasAttributeSetTrue(ruleElement, DEPRECATED));
|
||||
builder.usesDFA(hasAttributeSetTrue(ruleElement, "dfa"));
|
||||
|
Reference in New Issue
Block a user