class UnusedArrayRule extends AbstractAstVisitorRule
Checks for array allocations that are not assigned or used (i.e., it is ignored). Ignores unassigned arrays if the construction is the last statement within a block, because it may be the intentional return value.
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 |
---|
UnusedArrayRule
() |
Groovy Documentation