com.puppycrawl.tools.checkstyle.checks.coding
public final class ParameterAssignmentCheck extends Check
Disallow assignment of parameters.
Rationale: Parameter assignment is often considered poor programming practice. Forcing developers to declare parameters as final is often onerous. Having a check ensure that parameters are never assigned would give the best of both worlds.
| Method Summary | |
|---|---|
| void | beginTree(DetailAST aRootAST) {@inheritDoc} |
| int[] | getDefaultTokens() {@inheritDoc} |
| int[] | getRequiredTokens() {@inheritDoc} |
| void | leaveToken(DetailAST aAST) {@inheritDoc} |
| void | visitToken(DetailAST aAST) {@inheritDoc} |