forked from phoedos/pmd
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:
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user