You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by "K Adithyan (tech)" <ad...@gmail.com> on 2018/04/02 05:21:30 UTC
How to specify String[] in @ClosureParams
Team,
One of my closure should work on only one String[] argument, so that people
can work as below.. How should I configure in @ClosureParams annotation.
eachRow { row ->
context.portinfo[row[0]] = row[1]
}
I am able to properly configure @ClosureParams for List, Map or Other
objects. I know that even without that @ClosureParams annotation, the code
will work in the runtime...! But, still I want to do it
Pls advice