Fixed bug where a rule's "include" attribute was not being set properly.
The method Boolean.getBoolean() was the incorrect method. Now just test the "include" string for being equal to "true". git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@887 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -212,7 +212,7 @@ public class RuleSetReader
|
||||
|
||||
m_rule.setName(ruleName);
|
||||
m_rule.setMessage(message);
|
||||
m_rule.setInclude(Boolean.getBoolean(include));
|
||||
m_rule.setInclude(include.equalsIgnoreCase("true"));
|
||||
m_ruleSet.addRule(m_rule);
|
||||
}
|
||||
else if (qualifiedName.equalsIgnoreCase("property"))
|
||||
|
Reference in New Issue
Block a user