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. ------------- Commit messages: - 8304161: Add TypeKind.from to derive from TypeDescriptor.OfField Changes: https://git.openjdk.org/jdk/pull/13024/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=13024&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8304161 Stats: 17 lines in 6 files changed: 10 ins; 0 del; 7 mod Patch: https://git.openjdk.org/jdk/pull/13024.diff Fetch: git fetch https://git.openjdk.org/jdk pull/13024/head:pull/13024 PR: https://git.openjdk.org/jdk/pull/13024