--- old/src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java 2018-08-01 08:08:58.767826285 +0200 +++ new/src/jdk.compiler/share/classes/com/sun/source/tree/CaseTree.java 2018-08-01 08:08:58.471826299 +0200 @@ -57,14 +57,13 @@ /** * Returns the labels for this case. * For default case, returns an empty list. - * - * @apiNote - * This method is modeling a case with multiple labels, - * which is part of a preview feature and may be removed - * if the preview feature is removed. - * + * * @return labels for this case * @since 12 + * + * @deprecated This method is modeling a case with multiple labels, + * which is part of a preview feature and may be removed + * if the preview feature is removed. */ @Deprecated(forRemoval=true, since="12") List getExpressions(); @@ -81,17 +80,16 @@ /** * For case with kind {@linkplain CaseKind#RULE}, - * return the statement or expression after the arrow. + * returns the statement or expression after the arrow. * Returns {@code null} for case with kind * {@linkplain CaseKind#STATEMENT}. - * - * @apiNote - * This method is modeling a rule case, - * which is part of a preview feature and may be removed - * if the preview feature is removed. - * + * * @return case value or null * @since 12 + * + * @deprecated This method is modeling a rule case, + * which is part of a preview feature and may be removed + * if the preview feature is removed. */ @Deprecated(forRemoval=true, since="12") public default Tree getBody() { @@ -100,14 +98,13 @@ /** * Returns the kind of this case. - * - * @apiNote - * This method is used to model a rule case, - * which is part of a preview feature and may be removed - * if the preview feature is removed. - * + * * @return the kind of this case * @since 12 + * + * @deprecated This method is used to model a rule case, + * which is part of a preview feature and may be removed + * if the preview feature is removed. */ @Deprecated(forRemoval=true, since="12") public default CaseKind getCaseKind() { @@ -121,12 +118,11 @@ *
  • RULE: {@code case -> /}
  • * * - * @apiNote - * This enum is used to model a rule case, + * @since 12 + * + * @deprecated This enum is used to model a rule case, * which is part of a preview feature and may be removed * if the preview feature is removed. - * - * @since 12 */ @Deprecated(forRemoval=true, since="12") public enum CaseKind {