Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.0
-
None
-
None
Description
Some of the methods in DefaultGroovyMethods have type information - some do not. They all should have full type information.
For example, collectMany looks good:
public static <T,E> List<T> collectMany(Iterable<E> self, @ClosureParams(FirstParam.FirstGenericType.class) Closure<Collection<? extends T>> projection) {
sum is lacking all information:
public static Object sum(Iterable self) {
The signature for sum should probably be:
public static <T> T sum(Iterable<T> self) {
min, max, and count also have this issue.