equal
deleted
inserted
replaced
238 * Used for instances of {@link SwitchTree}. |
238 * Used for instances of {@link SwitchTree}. |
239 */ |
239 */ |
240 SWITCH(SwitchTree.class), |
240 SWITCH(SwitchTree.class), |
241 |
241 |
242 /** |
242 /** |
|
243 * {@preview Associated with switch expressions, a preview feature of |
|
244 * the Java language. |
|
245 * |
|
246 * This enum constant is associated with <i>switch expressions</i>, a preview |
|
247 * feature of the Java language. Preview features |
|
248 * may be removed in a future release, or upgraded to permanent |
|
249 * features of the Java language.} |
|
250 * |
243 * Used for instances of {@link SwitchExpressionTree}. |
251 * Used for instances of {@link SwitchExpressionTree}. |
244 * |
252 * |
245 * @since 12 |
253 * @since 12 |
246 * |
|
247 * @preview |
|
248 * This enum constant is modeling switch expressions, |
|
249 * which are part of a preview feature and may be removed |
|
250 * if the preview feature is removed. |
|
251 */ |
254 */ |
252 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
255 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
253 @SuppressWarnings("preview") |
256 @SuppressWarnings("preview") |
254 SWITCH_EXPRESSION(SwitchExpressionTree.class), |
257 SWITCH_EXPRESSION(SwitchExpressionTree.class), |
255 |
258 |
657 * you are looking for. |
660 * you are looking for. |
658 */ |
661 */ |
659 OTHER(null), |
662 OTHER(null), |
660 |
663 |
661 /** |
664 /** |
|
665 * {@preview Associated with switch expressions, a preview feature of |
|
666 * the Java language. |
|
667 * |
|
668 * This enum constant is associated with <i>switch expressions</i>, a preview |
|
669 * feature of the Java language. Preview features |
|
670 * may be removed in a future release, or upgraded to permanent |
|
671 * features of the Java language.} |
|
672 * |
662 * Used for instances of {@link YieldTree}. |
673 * Used for instances of {@link YieldTree}. |
663 * |
674 * |
664 * @since 13 |
675 * @since 13 |
665 * |
|
666 * @preview |
|
667 * This enum constant is modeling yield statement, |
|
668 * which are part of a preview feature and may be removed |
|
669 * if the preview feature is removed. |
|
670 */ |
676 */ |
671 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
677 @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS) |
672 @SuppressWarnings("preview") |
678 @SuppressWarnings("preview") |
673 YIELD(YieldTree.class); |
679 YIELD(YieldTree.class); |
674 |
680 |