mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-26 06:41:24 +00:00
8267861: Update SourceVersion with new language features in 16 and 17
Reviewed-by: jjg
This commit is contained in:
parent
cb7128b58e
commit
00c7aeee00
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user