PMD on PMD cleanup

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5000 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Xavier Le Vourch
2007-01-29 00:15:24 +00:00
parent db5ac5dc21
commit 332773291e
2 changed files with 3 additions and 3 deletions

View File

@ -20,8 +20,8 @@ public class JavaTokenizer implements Tokenizer {
private boolean ignoreIdentifiers;
public void setProperties(Properties properties) {
ignoreLiterals = Boolean.valueOf(properties.getProperty(IGNORE_LITERALS, "false")).booleanValue();
ignoreIdentifiers = Boolean.valueOf(properties.getProperty(IGNORE_IDENTIFIERS, "false")).booleanValue();
ignoreLiterals = Boolean.parseBoolean(properties.getProperty(IGNORE_LITERALS, "false"));
ignoreIdentifiers = Boolean.parseBoolean(properties.getProperty(IGNORE_IDENTIFIERS, "false"));
}
public void tokenize(SourceCode tokens, Tokens tokenEntries) {

View File

@ -77,7 +77,7 @@ public abstract class AbstractJspRule extends JspParserVisitorAdapter implements
}
public boolean getBooleanProperty(String name) {
return Boolean.valueOf(properties.getProperty(name)).booleanValue();
return Boolean.parseBoolean(properties.getProperty(name));
}
public String getStringProperty(String name) {