src/share/classes/com/sun/mirror/apt/Filer.java

Print this page

        

@@ -49,15 +49,21 @@
  * with a given pathname may be created only once.  If that file already
  * exists before the first attempt to create it, the old contents will
  * be deleted.  Any subsequent attempt to create the same file during
  * a run will fail.
  *
+ * @deprecated All components of this API have been superseded by the
+ * standardized annotation processing API.  The replacement for the
+ * functionality of this interface is {@link
+ * javax.annotation.processing.Filer}.
+ *
  * @author Joseph D. Darcy
  * @author Scott Seligman
  * @since 1.5
  */
-
+@Deprecated
+@SuppressWarnings("deprecation")
 public interface Filer {
 
     /**
      * Creates a new source file and returns a writer for it.
      * The file's name and path (relative to the root of all newly created

@@ -138,11 +144,17 @@
                                   File relPath) throws IOException;
 
 
     /**
      * Locations (subtrees within the file system) where new files are created.
+     *
+     * @deprecated All components of this API have been superseded by
+     * the standardized annotation processing API.  The replacement
+     * for the functionality of this enum is {@link
+     * javax.tools.StandardLocation}.
      */
+    @Deprecated
     enum Location {
         /** The location of new source files. */
         SOURCE_TREE,
         /** The location of new class files. */
         CLASS_TREE