src/share/classes/com/sun/mirror/util/DeclarationScanner.java

Print this page

        

@@ -37,15 +37,21 @@
  * class pass in their own visitors for pre and post processing.  The
  * preprocessing visitor is called before the contained declarations
  * are scanned; the postprocessing visitor is called after the
  * contained declarations are scanned.
  *
+ * @deprecated All components of this API have been superseded by the
+ * standardized annotation processing API.  The replacement for the
+ * functionality of this class is {@link
+ * javax.lang.model.util.ElementScanner6}.
+ *
  * @author Joseph D. Darcy
  * @author Scott Seligman
  * @since 1.5
  */
-
+@Deprecated
+@SuppressWarnings("deprecation")
 class DeclarationScanner implements DeclarationVisitor {
     protected DeclarationVisitor pre;
     protected DeclarationVisitor post;
 
     DeclarationScanner(DeclarationVisitor pre, DeclarationVisitor post) {