RFR: 8267329: Modernize Javadoc code to use instanceof with pattern matching [v3]
Pavel Rappo
prappo at openjdk.java.net
Mon May 24 15:31:04 UTC 2021
On Wed, 19 May 2021 17:20:02 GMT, Jonathan Gibbons <jjg at openjdk.org> wrote:
>> Ian Graves has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Name shortening. Copyright updates.
>
> src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/Contents.java line 415:
>
>> 413: c.add(con);
>> 414: }
>> 415:
>
> I guess at some point this becomes "pattern switch" or whatever the feature is called ... but not yet
The feature you are talking about is called "Pattern Matching for switch". The feature is described as a preview feature by JEP 406, which is currently proposed to target JDK 17.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4105
More information about the javadoc-dev
mailing list