This rule checks for the explicit instantiation of an ArrayList using the no-arg constructor. In Groovy, it is best to write "new ArrayList()" as "[]", which creates the same object.
Type Params | Return Type | Name and description |
---|---|---|
|
AstVisitor |
getAstVisitor() |