Groovy Documentation

groovy.org.codenarc.rule.unnecessary
[Groovy] Class UnnecessaryParenthesesForMethodCallWithClosureRule

java.lang.Object
  org.codenarc.rule.AbstractAstVisitorRule
      groovy.org.codenarc.rule.unnecessary.UnnecessaryParenthesesForMethodCallWithClosureRule

class UnnecessaryParenthesesForMethodCallWithClosureRule
extends AbstractAstVisitorRule

If a method is called and the only parameter to that method is an inline closure then the brackets of the method call can be omitted.

Authors:
Marcin Erdmann


Property Summary
Class astVisitorClass

String name

int priority

 

Property Detail

astVisitorClass

Class astVisitorClass


name

String name


priority

int priority


 

Groovy Documentation