File tree 1 file changed +7
-1
lines changed
src/java.compiler/share/classes/javax/lang/model
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,9 @@ public enum SourceVersion {
71
71
* record patterns in preview)
72
72
* 20: no changes (pattern matching for switch in fourth preview,
73
73
* record patterns in second preview)
74
- * 21: tbd
74
+ * 21: pattern matching for switch and record patterns (string
75
+ * templates in preview, unnamed patterns and variables in
76
+ * preview, unnamed classes and instance main methods in preview)
75
77
*/
76
78
77
79
/**
@@ -384,6 +386,10 @@ public enum SourceVersion {
384
386
* @see <a
385
387
* href="https://docs.oracle.com/javase/specs/jls/se21/html/index.html">
386
388
* <cite>The Java Language Specification, Java SE 21 Edition</cite></a>
389
+ * @see <a href="https://openjdk.org/jeps/440">
390
+ * Record Patterns</a>
391
+ * @see <a href="https://openjdk.org/jeps/441">
392
+ * Pattern Matching for switch</a>
387
393
*/
388
394
RELEASE_21 ;
389
395
You can’t perform that action at this time.
0 commit comments