--- old/src/java.compiler/share/classes/javax/lang/model/util/ElementKindVisitor14.java 2019-10-25 17:12:52.000000000 +0100
+++ new/src/java.compiler/share/classes/javax/lang/model/util/ElementKindVisitor14.java 2019-10-25 17:12:51.000000000 +0100
@@ -31,6 +31,14 @@
import javax.lang.model.SourceVersion;
/**
+ * {@preview Associated with records, a preview feature of the Java language.
+ *
+ * This class is associated with records, a preview
+ * feature of the Java language. Programs can only use this
+ * method when preview features are enabled. Preview features
+ * may be removed in a future release, or upgraded to permanent
+ * features of the Java language.}
+ *
* A visitor of program elements based on their {@linkplain
* ElementKind kind} with default behavior appropriate for the {@link
* SourceVersion#RELEASE_14 RELEASE_14} source version.
@@ -78,11 +86,10 @@
* @see ElementKindVisitor8
* @see ElementKindVisitor9
* @since 14
- * @deprecated This class is part of a preview feature and may be removed
- * if the preview feature is removed.
*/
-@Deprecated(forRemoval=true, since="14")
-@SuppressWarnings("removal")
+@jdk.internal.PreviewFeature(feature=jdk.internal.PreviewFeature.Feature.RECORDS,
+ essentialAPI=false)
+@SuppressWarnings("preview")
@SupportedSourceVersion(RELEASE_14)
public class ElementKindVisitor14 extends ElementKindVisitor9 {
/**