src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java
changeset 59021 cfc7bb9a5a92
parent 58713 ad69fd32778e
child 59285 7799a51dbe30
equal deleted inserted replaced
59020:aebd72de84b0 59021:cfc7bb9a5a92
   262     public R visitSwitch(SwitchTree node, P p) {
   262     public R visitSwitch(SwitchTree node, P p) {
   263         return defaultAction(node, p);
   263         return defaultAction(node, p);
   264     }
   264     }
   265 
   265 
   266     /**
   266     /**
   267      * {@preview Associated with switch expressions, a preview feature of
   267      * {@inheritDoc} This implementation calls {@code defaultAction}.
   268      *           the Java language.
   268      *
   269      *
   269      * @param node {@inheritDoc}
   270      *           This method is associated with <i>switch expressions</i>, a preview
   270      * @param p {@inheritDoc}
   271      *           feature of the Java language. Preview features
   271      * @return  the result of {@code defaultAction}
   272      *           may be removed in a future release, or upgraded to permanent
   272      */
   273      *           features of the Java language.}
   273     @Override
   274      *
       
   275      * {@inheritDoc} This implementation calls {@code defaultAction}.
       
   276      *
       
   277      * @param node {@inheritDoc}
       
   278      * @param p {@inheritDoc}
       
   279      * @return  the result of {@code defaultAction}
       
   280      */
       
   281     @Override
       
   282     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
       
   283     @SuppressWarnings("preview")
       
   284     public R visitSwitchExpression(SwitchExpressionTree node, P p) {
   274     public R visitSwitchExpression(SwitchExpressionTree node, P p) {
   285         return defaultAction(node, p);
   275         return defaultAction(node, p);
   286     }
   276     }
   287 
   277 
   288     /**
   278     /**
   792      * @param node {@inheritDoc}
   782      * @param node {@inheritDoc}
   793      * @param p {@inheritDoc}
   783      * @param p {@inheritDoc}
   794      * @return  the result of {@code defaultAction}
   784      * @return  the result of {@code defaultAction}
   795      */
   785      */
   796     @Override
   786     @Override
   797     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
       
   798     @SuppressWarnings("preview")
       
   799     public R visitYield(YieldTree node, P p) {
   787     public R visitYield(YieldTree node, P p) {
   800         return defaultAction(node, p);
   788         return defaultAction(node, p);
   801     }
   789     }
   802 }
   790 }