|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD | |||||||
java.lang.Objectorg.codenarc.rule.AbstractAstVisitorRule
groovy.org.codenarc.rule.unnecessary.UnnecessaryCollectCallRule
class UnnecessaryCollectCallRule extends AbstractAstVisitorRule
Some method calls to Object.collect(Closure) can be replaced with the spread operator. For instance, list.collect { it.multiply(2) } can be replaced by list*.multiply(2).
| Property Summary | |
|---|---|
Class |
astVisitorClass
|
String |
name
|
int |
priority
|
| Property Detail |
|---|
Class astVisitorClass
String name
int priority
Groovy Documentation