groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Milles (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-8573) Add @ClosureParams to each/eachWithIndex methods in DefaultGroovyMethods
Date Tue, 08 May 2018 15:30:00 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-8573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Milles updated GROOVY-8573:
--------------------------------
    Issue Type: Improvement  (was: Bug)

> Add @ClosureParams to each/eachWithIndex methods in DefaultGroovyMethods
> ------------------------------------------------------------------------
>
>                 Key: GROOVY-8573
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8573
>             Project: Groovy
>          Issue Type: Improvement
>    Affects Versions: 2.6.0-alpha-3, 3.0.0-alpha-2, 2.4.15, 2.5.0-rc-2
>            Reporter: Eric Milles
>            Priority: Minor
>
> Category methods {{each(T,Closure)}} and {{eachWithIndex(T,Closure)}} are missing {{@ClosureParams}}
annotations.
> From some cursory testing, it looks like these are the necessary additions:
> {code:java}
> public static <T> T each(T self, @ClosureParams(value=FromString.class, options={"T"})
Closure closure)
> public static <T> T eachWithIndex(T self, @ClosureParams(value=FromString.class,
options="T,Integer") Closure closure)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message