资讯

Furthermore, the update seeks to rectify the exclusion of primitive type patterns in the pattern matching for instanceof and switch, which had limited Java's expressiveness.
JEP 443, Unnamed Patterns and Variables (Preview), has been Completed from Targeted status for JDK 21. This preview JEP proposes to "enhance the language with unnamed patterns, which match a ...