Re: Collectors.Characteristics.IDENTITY_FINISH Spec Clarification

2018-10-15 Thread Brian Goetz
The intent is that the collector is free to either call the identity function, or replace it with an unchecked cast instead, and client code cannot tell the difference. On 10/9/2018 10:48 AM, Chris Dennis wrote: I’m attempting to clarify the meaning/intent of the language in the specification

Re: Collectors.Characteristics.IDENTITY_FINISH Spec Clarification

2018-10-15 Thread Chris Dennis
Is there a more suitable mailing list for this kind of core-libs spec related enquiry to be directed at? Thanks, Chris > On Oct 9, 2018, at 10:48 AM, Chris Dennis wrote: > > I’m attempting to clarify the meaning/intent of the language in the > specification of the identity-finish characteris

Collectors.Characteristics.IDENTITY_FINISH Spec Clarification

2018-10-09 Thread Chris Dennis
I’m attempting to clarify the meaning/intent of the language in the specification of the identity-finish characteristic of collectors. The javadoc reads: Indicates that the finisher function is the identity function and can be elided. If set, it must be the case that an unchecked cast