Groovy Documentation

groovy.org.codenarc.rule.groovyism
[Groovy] Class UseCollectManyRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.groovyism.UseCollectManyRule

class UseCollectManyRule
extends AbstractAstVisitorRule

In many case collectMany() yields the same result as collect{}.flatten. It is easier to understand and more clearly transports the purpose.

Authors:
Joachim Baumann


Field Summary
protected static String MESSAGE

 
Property Summary
Class astVisitorClass

String name

int priority

 

Field Detail

MESSAGE

protected static final String MESSAGE


 
Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation