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:
no_author
2002-09-09 20:22:56 +00:00
parent a30007c573
commit 9ed45d1472

View File

@ -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"))