RFR: 8303374: Implement JEP 455: Primitive Types in Patterns, instanceof, and switch (Preview) [v45]
Aggelos Biboudis
abimpoudis at openjdk.org
Wed Jan 24 23:42:51 UTC 2024
On Wed, 24 Jan 2024 17:15:06 GMT, Vicente Romero <vromero at openjdk.org> wrote:
>> Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Remove redundant test from checkUnconditionallyExact
>
> src/java.base/share/classes/java/lang/runtime/SwitchBootstraps.java line 168:
>
>> 166: requireNonNull(labels);
>> 167:
>> 168: labels = labels.clone();
>
> just curious, why do we need to clone this array?
No need. Remainings of a previous approach. Thanks for spotting
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15638#discussion_r1465672119
More information about the core-libs-dev
mailing list