mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-25 17:07:05 +07:00
testdata for IDEA-136887
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
import java.util.Collection;
|
||||
import java.util.function.ToIntFunction;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
class Test {
|
||||
public static <T> int sum(Collection<? extends T> collection, ToIntFunction<? super T> mapper) {
|
||||
return collection.stream().collect(Collectors.summingInt(mapper));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user