RFR: 8304161: Add TypeKind.from to derive from TypeDescriptor.OfField
Jorn Vernee
jvernee at openjdk.org
Wed Mar 15 21:25:19 UTC 2023
On Tue, 14 Mar 2023 17:12:50 GMT, Chen Liang <liach at openjdk.org> wrote:
> Such an API allows creating TypeKind from both Class and ClassDesc than having to call descriptorString() explicitly at every use site.
>
> See https://mail.openjdk.org/pipermail/classfile-api-dev/2023-March/000240.html for context.
>
> Upgraded usages of `fromDescriptor` to `from` in applicable use sites in Classfile API and its tests.
LGTM. I think @briangoetz might want to weigh in on this as well.
-------------
Marked as reviewed by jvernee (Reviewer).
PR: https://git.openjdk.org/jdk/pull/13024
More information about the core-libs-dev
mailing list