< prev index next >
src/jdk.compiler/share/classes/com/sun/source/tree/Tree.java
Print this page
rev 51258 : imported patch switch
@@ -238,10 +238,24 @@
* Used for instances of {@link SwitchTree}.
*/
SWITCH(SwitchTree.class),
/**
+ * Used for instances of {@link SwitchExpressionTree}.
+ *
+ * @since 12
+ *
+ * @deprecated
+ * This enum constant is modeling switch expressions,
+ * which are part of a preview feature and may be removed
+ * if the preview feature is removed.
+ */
+ @Deprecated(forRemoval=true, since="12")
+ @SuppressWarnings("removal")
+ SWITCH_EXPRESSION(SwitchExpressionTree.class),
+
+ /**
* Used for instances of {@link SynchronizedTree}.
*/
SYNCHRONIZED(SynchronizedTree.class),
/**
< prev index next >