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() |
| int[] | getDefaultTokens() |
| int[] | getRequiredTokens() |
| void | leaveToken(DetailAST aAST) |
| void | visitToken(DetailAST aAST) |