com.puppycrawl.tools.checkstyle.checks.usage
Class UnusedParameterCheck
- Configurable, Contextualizable
public class UnusedParameterCheck
Checks that a parameter is used.
An example of how to configure the check is:
<module name="usage.UnusedParameter"/>
- Rick Giles
applyTo, beginTree, finishTree, getASTManager, getErrorKey, getIgnoreFormat, getRegexp, logError, mustCheckReferenceCount, setIgnoreFormat, visitToken |
beginTree, destroy, finishTree, getAcceptableTokens, getClassLoader, getDefaultTokens, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
getMessageBundle, getSeverity, getSeverityLevel, log, log, log, log, log, log, log, log, log, log, log, setSeverity |
getDefaultTokens
public int[] getDefaultTokens()
- getDefaultTokens in interface Check
Check
setIgnoreCatch
public void setIgnoreCatch(boolean aIgnoreCatch)
Control whether unused catch clause parameters are flagged.
aIgnoreCatch - whether unused catch clause parameters
should be flagged.
setIgnoreNonLocal
public void setIgnoreNonLocal(boolean aIgnoreNonLocal)
Controls whether public/protected/paskage methods shouldn't be checked.
aIgnoreNonLocal - whether we should check any other methods
except static and private should be checked.