RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v4]
Chen Liang
liach at openjdk.org
Mon Jun 26 22:02:28 UTC 2023
> This patch touches java.lang.reflect and java.lang.invoke packages. It replaces instanceof + cast with pattern matching and updates Array.newInstance().getClass() patterns with arrayType() for obtaining array types of a class.
Chen Liang has updated the pull request incrementally with two additional commits since the last revision:
- Wrap line that is too long
- Use single space for single-line if statements
Co-authored-by: Andrey Turbanov <turbanoff at gmail.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/14642/files
- new: https://git.openjdk.org/jdk/pull/14642/files/7879c150..9ea36a54
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=14642&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=14642&range=02-03
Stats: 5 lines in 3 files changed: 1 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/14642.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14642/head:pull/14642
PR: https://git.openjdk.org/jdk/pull/14642
More information about the core-libs-dev
mailing list