On Mon, 11 Apr 2022 13:08:43 GMT, altrisi <[email protected]> wrote:
> Changes the definition of `CollectorImpl` to be a record.
src/java.base/share/classes/java/util/stream/Collectors.java line 197:
> 195: * @param <R> the type of the result
> 196: */
> 197: static record CollectorImpl<T, A, R>(Supplier<A> supplier,
Suggestion:
record CollectorImpl<T, A, R>(Supplier<A> supplier,
[Nested records are implicitly
static.](https://docs.oracle.com/javase/specs/jls/se18/html/jls-8.html#jls-8.10-220)
-------------
PR: https://git.openjdk.java.net/jdk/pull/8179