com.puppycrawl.tools.checkstyle.checks.coding
public class FinalLocalVariableCheck extends Check
Ensures that local variables that never get their values changed, must be declared final.
An example of how to configure the check is:
<module name="FinalLocalVariable">
<property name="token" value="VARIABLE_DEF"/>
</module>
| Method Summary | |
|---|---|
| int[] | getAcceptableTokens() {@inheritDoc} |
| int[] | getDefaultTokens()
{@inheritDoc} |
| int[] | getRequiredTokens() {@inheritDoc} |
| void | leaveToken(DetailAST aAST)
{@inheritDoc} |
| void | visitToken(DetailAST aAST)
{@inheritDoc} |