langtools/src/share/classes/com/sun/tools/apt/main/Main.java
changeset 3378 22011d9a9398
parent 2981 76ea6ddc4f72
child 4937 2fc03fb01efa
--- a/langtools/src/share/classes/com/sun/tools/apt/main/Main.java	Fri Jul 24 14:47:01 2009 -0700
+++ b/langtools/src/share/classes/com/sun/tools/apt/main/Main.java	Sun Jul 26 21:27:11 2009 -0700
@@ -64,6 +64,7 @@
  *  risk.  This code and its internal interfaces are subject to change
  *  or deletion without notice.</b>
  */
+@SuppressWarnings("deprecation")
 public class Main {
 
     /** For testing: enter any options you want to be set implicitly
@@ -780,7 +781,6 @@
         // prefixed to command line arguments.
         processArgs(forcedOpts);
 
-
         /*
          * A run of apt only gets passed the most recently generated
          * files; the initial run of apt gets passed the files from
@@ -792,6 +792,11 @@
             // assign args the result of parse to capture results of
             // '@file' expansion
             origFilenames = processArgs((args=CommandLine.parse(args)));
+
+            if (options.get("suppress-tool-api-removal-message") == null) {
+                Bark.printLines(out, getLocalizedString("misc.Deprecation"));
+            }
+
             if (origFilenames == null) {
                 return EXIT_CMDERR;
             } else if (origFilenames.size() == 0) {