< prev index next >
src/jdk.compiler/share/classes/com/sun/source/util/SimpleTreeVisitor.java
Print this page
rev 51258 : imported patch switch.diff
*** 267,276 ****
--- 267,295 ----
* {@inheritDoc} This implementation calls {@code defaultAction}.
*
* @param node {@inheritDoc}
* @param p {@inheritDoc}
* @return the result of {@code defaultAction}
+ *
+ * @deprecated
+ * This method is modeling switch expressions,
+ * which are part of a preview feature and may be removed
+ * if the preview feature is removed.
+ */
+ @Override
+ @Deprecated(forRemoval=true, since="12")
+ @SuppressWarnings("removal")
+ public R visitSwitchExpression(SwitchExpressionTree node, P p) {
+ return defaultAction(node, p);
+ }
+
+ /**
+ * {@inheritDoc} This implementation calls {@code defaultAction}.
+ *
+ * @param node {@inheritDoc}
+ * @param p {@inheritDoc}
+ * @return the result of {@code defaultAction}
*/
@Override
public R visitCase(CaseTree node, P p) {
return defaultAction(node, p);
}
< prev index next >