On Tue, 16 Nov 2021 13:03:35 GMT, Jim Laskey <jlas...@openjdk.org> wrote:

>> (I'm not reviewer.)
>> 
>> I think `.toArray(Class<?>[]::new)` should be better here. `.toList` seems 
>> unnecessary.
>
> Class<?>[] types = Stream.of(getters)
>                 .map(g -> g.type().returnType())
>                 .toArray(Class<?>[]::new);

or do not use a stream but a simple loop, codes in bootstrap methods should be 
low-level

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

PR: https://git.openjdk.java.net/jdk/pull/6403

Reply via email to