Skip to content

Commit 7d1147e

Browse files
committed
8309554: Update descriptions in SourceVersion
Reviewed-by: jlaskey, jjg, rriggs
1 parent 9526190 commit 7d1147e

File tree

1 file changed

+29
-25
lines changed

1 file changed

+29
-25
lines changed

src/java.compiler/share/classes/javax/lang/model/SourceVersion.java

Lines changed: 29 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2005, 2023, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -85,15 +85,16 @@ public enum SourceVersion {
8585
RELEASE_0,
8686

8787
/**
88-
* The version recognized by the Java Platform 1.1.
88+
* The version introduced by the Java Platform 1.1.
8989
*
90-
* The language is {@code RELEASE_0} augmented with nested classes as described in the 1.1 update to
91-
* <cite>The Java Language Specification, First Edition</cite>.
90+
* The language is {@code RELEASE_0} augmented with nested classes
91+
* as described in the 1.1 update to <cite>The Java Language
92+
* Specification, First Edition</cite>.
9293
*/
9394
RELEASE_1,
9495

9596
/**
96-
* The version recognized by the Java 2 Platform, Standard Edition,
97+
* The version introduced by the Java 2 Platform, Standard Edition,
9798
* v 1.2.
9899
*
99100
* The language described in
@@ -104,15 +105,15 @@ public enum SourceVersion {
104105
RELEASE_2,
105106

106107
/**
107-
* The version recognized by the Java 2 Platform, Standard Edition,
108+
* The version introduced by the Java 2 Platform, Standard Edition,
108109
* v 1.3.
109110
*
110111
* No major changes from {@code RELEASE_2}.
111112
*/
112113
RELEASE_3,
113114

114115
/**
115-
* The version recognized by the Java 2 Platform, Standard Edition,
116+
* The version introduced by the Java 2 Platform, Standard Edition,
116117
* v 1.4.
117118
*
118119
* Added a simple assertion facility.
@@ -123,7 +124,7 @@ public enum SourceVersion {
123124
RELEASE_4,
124125

125126
/**
126-
* The version recognized by the Java 2 Platform, Standard
127+
* The version introduced by the Java 2 Platform, Standard
127128
* Edition 5.0.
128129
*
129130
* The language described in
@@ -143,7 +144,7 @@ public enum SourceVersion {
143144
RELEASE_5,
144145

145146
/**
146-
* The version recognized by the Java Platform, Standard Edition
147+
* The version introduced by the Java Platform, Standard Edition
147148
* 6.
148149
*
149150
* No major changes from {@code RELEASE_5}.
@@ -155,10 +156,10 @@ public enum SourceVersion {
155156
RELEASE_6,
156157

157158
/**
158-
* The version recognized by the Java Platform, Standard Edition
159+
* The version introduced by the Java Platform, Standard Edition
159160
* 7.
160161
*
161-
* Additions in this release include, diamond syntax for
162+
* Additions in this release include diamond syntax for
162163
* constructors, {@code try}-with-resources, strings in switch,
163164
* binary literals, and multi-catch.
164165
* @since 1.7
@@ -172,7 +173,7 @@ public enum SourceVersion {
172173
RELEASE_7,
173174

174175
/**
175-
* The version recognized by the Java Platform, Standard Edition
176+
* The version introduced by the Java Platform, Standard Edition
176177
* 8.
177178
*
178179
* Additions in this release include lambda expressions and default methods.
@@ -187,7 +188,7 @@ public enum SourceVersion {
187188
RELEASE_8,
188189

189190
/**
190-
* The version recognized by the Java Platform, Standard Edition
191+
* The version introduced by the Java Platform, Standard Edition
191192
* 9.
192193
*
193194
* Additions in this release include modules and removal of a
@@ -206,7 +207,7 @@ public enum SourceVersion {
206207
RELEASE_9,
207208

208209
/**
209-
* The version recognized by the Java Platform, Standard Edition
210+
* The version introduced by the Java Platform, Standard Edition
210211
* 10.
211212
*
212213
* Additions in this release include local-variable type inference
@@ -223,7 +224,7 @@ public enum SourceVersion {
223224
RELEASE_10,
224225

225226
/**
226-
* The version recognized by the Java Platform, Standard Edition
227+
* The version introduced by the Java Platform, Standard Edition
227228
* 11.
228229
*
229230
* Additions in this release include local-variable syntax for
@@ -240,7 +241,7 @@ public enum SourceVersion {
240241
RELEASE_11,
241242

242243
/**
243-
* The version recognized by the Java Platform, Standard Edition
244+
* The version introduced by the Java Platform, Standard Edition
244245
* 12.
245246
* No major changes from the prior release.
246247
*
@@ -253,7 +254,7 @@ public enum SourceVersion {
253254
RELEASE_12,
254255

255256
/**
256-
* The version recognized by the Java Platform, Standard Edition
257+
* The version introduced by the Java Platform, Standard Edition
257258
* 13.
258259
* No major changes from the prior release.
259260
*
@@ -266,7 +267,7 @@ public enum SourceVersion {
266267
RELEASE_13,
267268

268269
/**
269-
* The version recognized by the Java Platform, Standard Edition
270+
* The version introduced by the Java Platform, Standard Edition
270271
* 14.
271272
*
272273
* Additions in this release include switch expressions.
@@ -282,7 +283,7 @@ public enum SourceVersion {
282283
RELEASE_14,
283284

284285
/**
285-
* The version recognized by the Java Platform, Standard Edition
286+
* The version introduced by the Java Platform, Standard Edition
286287
* 15.
287288
*
288289
* Additions in this release include text blocks.
@@ -298,7 +299,7 @@ public enum SourceVersion {
298299
RELEASE_15,
299300

300301
/**
301-
* The version recognized by the Java Platform, Standard Edition
302+
* The version introduced by the Java Platform, Standard Edition
302303
* 16.
303304
*
304305
* Additions in this release include records and pattern matching
@@ -317,7 +318,7 @@ public enum SourceVersion {
317318
RELEASE_16,
318319

319320
/**
320-
* The version recognized by the Java Platform, Standard Edition
321+
* The version introduced by the Java Platform, Standard Edition
321322
* 17.
322323
*
323324
* Additions in this release include sealed classes and
@@ -336,7 +337,7 @@ public enum SourceVersion {
336337
RELEASE_17,
337338

338339
/**
339-
* The version recognized by the Java Platform, Standard Edition
340+
* The version introduced by the Java Platform, Standard Edition
340341
* 18.
341342
*
342343
* No major changes from the prior release.
@@ -350,7 +351,7 @@ public enum SourceVersion {
350351
RELEASE_18,
351352

352353
/**
353-
* The version recognized by the Java Platform, Standard Edition
354+
* The version introduced by the Java Platform, Standard Edition
354355
* 19.
355356
*
356357
* No major changes from the prior release.
@@ -364,7 +365,7 @@ public enum SourceVersion {
364365
RELEASE_19,
365366

366367
/**
367-
* The version recognized by the Java Platform, Standard Edition
368+
* The version introduced by the Java Platform, Standard Edition
368369
* 20.
369370
*
370371
* No major changes from the prior release.
@@ -378,9 +379,12 @@ public enum SourceVersion {
378379
RELEASE_20,
379380

380381
/**
381-
* The version recognized by the Java Platform, Standard Edition
382+
* The version introduced by the Java Platform, Standard Edition
382383
* 21.
383384
*
385+
* Additions in this release include record patterns and pattern
386+
* matching for {@code switch}.
387+
*
384388
* @since 21
385389
*
386390
* @see <a

0 commit comments

Comments
 (0)