< prev index next >

src/java.compiler/share/classes/javax/lang/model/util/ElementScanner14.java

Print this page

        

@@ -29,10 +29,18 @@
 import javax.annotation.processing.SupportedSourceVersion;
 import javax.lang.model.SourceVersion;
 import static javax.lang.model.SourceVersion.*;
 
 /**
+ * {@preview Associated with records, a preview feature of the Java language.
+ *
+ *           This class is associated with <i>records</i>, 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 scanning visitor of program elements with default behavior
  * appropriate for the {@link SourceVersion#RELEASE_14 RELEASE_14}
  * source version.
  *
  * The <code>visit<i>Xyz</i></code> methods in this

@@ -88,15 +96,14 @@
  * @see ElementScanner6
  * @see ElementScanner7
  * @see ElementScanner8
  * @see ElementScanner9
  * @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 ElementScanner14<R, P> extends ElementScanner9<R, P> {
     /**
      * Constructor for concrete subclasses; uses {@code null} for the
      * default value.
< prev index next >