class ExplicitLinkedHashMapInstantiationRule extends AbstractAstVisitorRule
This rule checks for the explicit instantiation of a LinkedHashMap using the no-arg constructor. In Groovy, it is best to write "new LinkedHashMap()" as "[:]", which creates the same object.
| Modifiers | Name | Description |
|---|---|---|
class |
ExplicitLinkedHashMapInstantiationRule.1 |
| 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 |
| Constructor and description |
|---|
ExplicitLinkedHashMapInstantiationRule
() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
AstVisitor |
getAstVisitor() |
Groovy Documentation