You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2017/05/02 02:03:11 UTC

[jira] [Closed] (GROOVY-7283) DefaultGroovyMethods methods should include type information

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

Paul King closed GROOVY-7283.
-----------------------------

> 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-alpha-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.15#6346)