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