Skip to content

Commit

Permalink
8309554: Update descriptions in SourceVersion
Browse files Browse the repository at this point in the history
Reviewed-by: jlaskey, jjg, rriggs
  • Loading branch information
jddarcy committed Jun 6, 2023
1 parent 9526190 commit 7d1147e
Showing 1 changed file with 29 additions and 25 deletions.
54 changes: 29 additions & 25 deletions src/java.compiler/share/classes/javax/lang/model/SourceVersion.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -85,15 +85,16 @@ public enum SourceVersion {
RELEASE_0,

/**
* The version recognized by the Java Platform 1.1.
* The version introduced by the Java Platform 1.1.
*
* The language is {@code RELEASE_0} augmented with nested classes as described in the 1.1 update to
* <cite>The Java Language Specification, First Edition</cite>.
* The language is {@code RELEASE_0} augmented with nested classes
* as described in the 1.1 update to <cite>The Java Language
* Specification, First Edition</cite>.
*/
RELEASE_1,

/**
* The version recognized by the Java 2 Platform, Standard Edition,
* The version introduced by the Java 2 Platform, Standard Edition,
* v 1.2.
*
* The language described in
Expand All @@ -104,15 +105,15 @@ public enum SourceVersion {
RELEASE_2,

/**
* The version recognized by the Java 2 Platform, Standard Edition,
* The version introduced by the Java 2 Platform, Standard Edition,
* v 1.3.
*
* No major changes from {@code RELEASE_2}.
*/
RELEASE_3,

/**
* The version recognized by the Java 2 Platform, Standard Edition,
* The version introduced by the Java 2 Platform, Standard Edition,
* v 1.4.
*
* Added a simple assertion facility.
Expand All @@ -123,7 +124,7 @@ public enum SourceVersion {
RELEASE_4,

/**
* The version recognized by the Java 2 Platform, Standard
* The version introduced by the Java 2 Platform, Standard
* Edition 5.0.
*
* The language described in
Expand All @@ -143,7 +144,7 @@ public enum SourceVersion {
RELEASE_5,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 6.
*
* No major changes from {@code RELEASE_5}.
Expand All @@ -155,10 +156,10 @@ public enum SourceVersion {
RELEASE_6,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 7.
*
* Additions in this release include, diamond syntax for
* Additions in this release include diamond syntax for
* constructors, {@code try}-with-resources, strings in switch,
* binary literals, and multi-catch.
* @since 1.7
Expand All @@ -172,7 +173,7 @@ public enum SourceVersion {
RELEASE_7,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 8.
*
* Additions in this release include lambda expressions and default methods.
Expand All @@ -187,7 +188,7 @@ public enum SourceVersion {
RELEASE_8,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 9.
*
* Additions in this release include modules and removal of a
Expand All @@ -206,7 +207,7 @@ public enum SourceVersion {
RELEASE_9,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 10.
*
* Additions in this release include local-variable type inference
Expand All @@ -223,7 +224,7 @@ public enum SourceVersion {
RELEASE_10,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 11.
*
* Additions in this release include local-variable syntax for
Expand All @@ -240,7 +241,7 @@ public enum SourceVersion {
RELEASE_11,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 12.
* No major changes from the prior release.
*
Expand All @@ -253,7 +254,7 @@ public enum SourceVersion {
RELEASE_12,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 13.
* No major changes from the prior release.
*
Expand All @@ -266,7 +267,7 @@ public enum SourceVersion {
RELEASE_13,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 14.
*
* Additions in this release include switch expressions.
Expand All @@ -282,7 +283,7 @@ public enum SourceVersion {
RELEASE_14,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 15.
*
* Additions in this release include text blocks.
Expand All @@ -298,7 +299,7 @@ public enum SourceVersion {
RELEASE_15,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 16.
*
* Additions in this release include records and pattern matching
Expand All @@ -317,7 +318,7 @@ public enum SourceVersion {
RELEASE_16,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 17.
*
* Additions in this release include sealed classes and
Expand All @@ -336,7 +337,7 @@ public enum SourceVersion {
RELEASE_17,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 18.
*
* No major changes from the prior release.
Expand All @@ -350,7 +351,7 @@ public enum SourceVersion {
RELEASE_18,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 19.
*
* No major changes from the prior release.
Expand All @@ -364,7 +365,7 @@ public enum SourceVersion {
RELEASE_19,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 20.
*
* No major changes from the prior release.
Expand All @@ -378,9 +379,12 @@ public enum SourceVersion {
RELEASE_20,

/**
* The version recognized by the Java Platform, Standard Edition
* The version introduced by the Java Platform, Standard Edition
* 21.
*
* Additions in this release include record patterns and pattern
* matching for {@code switch}.
*
* @since 21
*
* @see <a
Expand Down

1 comment on commit 7d1147e

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.