Details
Description
From the documentation, the accumulator type (second type) of java.util.stream.Collector is often hidden as an implementation detail, we should not report an issue for it.
class Scratch { public static Collector<Integer, ?, Integer> summing() { return Collector.of( () -> new int[1], (a, t) -> a[0] += t, (a, b) -> { a[0] += b[0]; return a; }, a -> a[0] ); } }
Attachments
Issue Links
- relates to
-
RSPEC-1452 Generic wildcard types should not be used in return types
- Active
- links to