RFR: 8310849: Pattern matching for instanceof and arrayType cleanup in j.l.invoke and j.l.reflect [v3]

Chen Liang liach at openjdk.org
Mon Jun 26 13:51:25 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 one additional commit since the last revision:

  simplify equals by replacing if with and operators

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/14642/files
  - new: https://git.openjdk.org/jdk/pull/14642/files/4f5829e3..7879c150

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=14642&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14642&range=01-02

  Stats: 88 lines in 5 files changed: 0 ins; 63 del; 25 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