Class ParameterAssignmentCheck

  • All Implemented Interfaces:
    Configurable, Contextualizable

    public final class ParameterAssignmentCheck
    extends AbstractCheck

    Disallows 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.

    Parent is com.puppycrawl.tools.checkstyle.TreeWalker

    Violation Message Keys:

    • parameter.assignment
    Since:
    3.2