RFR: 8265899: Use pattern matching for instanceof at module jdk.compiler(part 1)

Guoxiong Li gli at openjdk.java.net
Sun Apr 25 09:37:04 UTC 2021


Hi all,

This series of patches update the code of the module jdk.compiler by using the pattern matching for instanceof.

This patch would revise the following packages:

com.sun.tools.javac.api
com.sun.tools.javac.file
com.sun.tools.javac.main
com.sun.tools.javac.model
com.sun.tools.javac.platform
com.sun.tools.javac.tree
com.sun.tools.javac.util


Thank you for taking the time to review.

--
Best Regards,
Guoxiong.

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

Commit messages:
 - 8265899: Use pattern matching for instanceof at module jdk.compiler(part 1)

Changes: https://git.openjdk.java.net/jdk/pull/3673/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3673&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8265899
  Stats: 290 lines in 35 files changed: 3 ins; 39 del; 248 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3673.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3673/head:pull/3673

PR: https://git.openjdk.java.net/jdk/pull/3673


More information about the compiler-dev mailing list