8267861: Update SourceVersion with new language features in 16 and 17

Reviewed-by: jjg
This commit is contained in:
Joe Darcy 2021-06-02 00:33:17 +00:00
parent cb7128b58e
commit 00c7aeee00

View File

@ -221,6 +221,9 @@ public enum SourceVersion {
* The version recognized by the Java Platform, Standard Edition
* 16.
*
* Additions in this release include pattern matching for {@code
* instanceof} and records.
*
* @since 16
*/
RELEASE_16,
@ -229,6 +232,9 @@ public enum SourceVersion {
* The version recognized by the Java Platform, Standard Edition
* 17.
*
* Additions in this release include sealed classes and
* restoration of always-strict floating-point semantics.
*
* @since 17
*/
RELEASE_17;