class ParameterReassignmentRule extends AbstractAstVisitorRule
Checks for a method or closure parameter being reassigned to a new value within the body of the method/closure, which is a confusing, questionable practice. Use a temporary variable instead.
Fields inherited from class | Fields |
---|---|
class AbstractAstVisitorRule |
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME |
Type | Name and description |
---|---|
java.lang.Class |
astVisitorClass |
java.lang.String |
name |
int |
priority |
Constructor and description |
---|
ParameterReassignmentRule
() |
Groovy Documentation