src/jdk.compiler/share/classes/com/sun/source/tree/Tree.java
changeset 59021 cfc7bb9a5a92
parent 58713 ad69fd32778e
child 59285 7799a51dbe30
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
   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          *
       
   251          * Used for instances of {@link SwitchExpressionTree}.
   243          * Used for instances of {@link SwitchExpressionTree}.
   252          *
   244          *
   253          * @since 12
   245          * @since 12
   254          */
   246          */
   255         @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
       
   256         @SuppressWarnings("preview")
       
   257         SWITCH_EXPRESSION(SwitchExpressionTree.class),
   247         SWITCH_EXPRESSION(SwitchExpressionTree.class),
   258 
   248 
   259         /**
   249         /**
   260          * Used for instances of {@link SynchronizedTree}.
   250          * Used for instances of {@link SynchronizedTree}.
   261          */
   251          */
   660          * you are looking for.
   650          * you are looking for.
   661          */
   651          */
   662         OTHER(null),
   652         OTHER(null),
   663 
   653 
   664         /**
   654         /**
   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          *
       
   673          * Used for instances of {@link YieldTree}.
   655          * Used for instances of {@link YieldTree}.
   674          *
   656          *
   675          * @since 13
   657          * @since 13
   676          */
   658          */
   677         @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
       
   678         @SuppressWarnings("preview")
       
   679         YIELD(YieldTree.class);
   659         YIELD(YieldTree.class);
   680 
   660 
   681 
   661 
   682         Kind(Class<? extends Tree> intf) {
   662         Kind(Class<? extends Tree> intf) {
   683             associatedInterface = intf;
   663             associatedInterface = intf;