RFR: 8365620: Using enhanced switch in MethodHandleDesc
David Alayachew
davidalayachew at gmail.com
Sat Aug 30 17:58:04 UTC 2025
Wait, I am confused why you are leaving the default clause in there? Isn't
it to your benefit to replace the default clause and include each value
explicitly?
On Sat, Aug 30, 2025, 12:26 PM Chen Liang <liach at openjdk.org> wrote:
> On Thu, 14 Aug 2025 04:49:28 GMT, Shaojin Wen <swen at openjdk.org> wrote:
>
> > In MethodHandleDesc, the `ofField` method uses enhanced switch, while
> the `of` and `ofMethod` methods use traditional switch. The same class
> should have a unified style.
>
> Sure, let's go ahead with this.
>
> -------------
>
> Marked as reviewed by liach (Reviewer).
>
> PR Review:
> https://git.openjdk.org/jdk/pull/26769#pullrequestreview-3171112655
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20250830/6e8ece4e/attachment.htm>
More information about the core-libs-dev
mailing list