On Mon, 31 Oct 2022 13:45:10 GMT, Jim Laskey <jlas...@openjdk.org> wrote:

>> Yes, it only occurs to me mid review, that said there is already an 
>> implementation in the jdk of a compact immutable that allow null inside the 
>> JDK (this implementation is used when stream.toList() is used).
>> Using that implementation will avoid a bunch of indirection
>
> Changing to use `JUCA`.

The change to JUCA means the suppress warnings will need to be extended to 
@SuppressWarnings({"unchecked", "varargs"}).

-------------

PR: https://git.openjdk.org/jdk/pull/10889

Reply via email to