< prev index next >

src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java

Print this page
rev 51291 : imported patch switch
rev 51292 : [mq]: switch.02

@@ -67,15 +67,14 @@
      */
     @Deprecated(forRemoval=true, since="12")
     List<? extends ExpressionTree> getExpressions();
 
     /**
-     * Returns the statements labeled by the case.
-     * If this is a case in switch expression in for
-     * {@code case expression -> value}, returns a list
-     * containing a single synthetic BreakTree with
-     * the given value.
+     * For case with kind {@linkplain CaseKind#STATEMENT},
+     * returns the statements labeled by the case.
+     * Returns {@code null} for case with kind
+     * {@linkplain CaseKind#RULE}.
      * @return the statements labeled by the case or null
      */
     List<? extends StatementTree> getStatements();
 
     /**
< prev index next >