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

Paul King resolved GROOVY-7283.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.5.0-beta-1

I merged most of the remaining changes into master, so I'll close this. There 
are no doubt more methods still that could be improved but we can create 
specific issues for further work if needed.

> DefaultGroovyMethods methods should include type information
> ------------------------------------------------------------
>
>                 Key: GROOVY-7283
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7283
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.0
>            Reporter: Craig
>            Assignee: Paul King
>             Fix For: 2.5.0-beta-1
>
>
> Some of the methods in DefaultGroovyMethods have type information - some do 
> not. They all should have full type information.
> For example, collectMany looks good:
> {code}
> public static <T,E> List<T> collectMany(Iterable<E> self, 
> @ClosureParams(FirstParam.FirstGenericType.class) Closure<Collection<? 
> extends T>> projection) {
> {code}
> sum is lacking all information:
> {code}
> public static Object sum(Iterable self) {
> {code}
> The signature for sum should probably be:
> {code}
> public static <T> T sum(Iterable<T> self) {
> {code}
> min, max, and count also have this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to