src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java
branchJDK-8226585-branch
changeset 58440 4c8a6d1d066c
parent 58109 ee07de0d2c16
equal deleted inserted replaced
58342:ebb1ff3d6707 58440:4c8a6d1d066c
   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      * {@inheritDoc} This implementation calls {@code defaultAction}.
   267      * {@preview Associated with switch expressions, a preview feature of
   268      *
   268      *           the Java language.
   269      * @param node {@inheritDoc}
   269      *
   270      * @param p {@inheritDoc}
   270      *           This method is associated with <i>switch expressions</i>, a preview
   271      * @return  the result of {@code defaultAction}
   271      *           feature of the Java language. Preview features
   272      *
   272      *           may be removed in a future release, or upgraded to permanent
   273      * @preview
   273      *           features of the Java language.}
   274      * This method is modeling switch expressions,
   274      *
   275      * which are part of a preview feature and may be removed
   275      * {@inheritDoc} This implementation calls {@code defaultAction}.
   276      * if the preview feature is removed.
   276      *
       
   277      * @param node {@inheritDoc}
       
   278      * @param p {@inheritDoc}
       
   279      * @return  the result of {@code defaultAction}
   277      */
   280      */
   278     @Override
   281     @Override
   279     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
   282     @jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.SWITCH_EXPRESSIONS)
   280     @SuppressWarnings("preview")
   283     @SuppressWarnings("preview")
   281     public R visitSwitchExpression(SwitchExpressionTree node, P p) {
   284     public R visitSwitchExpression(SwitchExpressionTree node, P p) {