1.1 --- a/src/share/classes/com/sun/tools/apt/main/Main.java Fri Jul 24 14:47:01 2009 -0700 1.2 +++ b/src/share/classes/com/sun/tools/apt/main/Main.java Sun Jul 26 21:27:11 2009 -0700 1.3 @@ -64,6 +64,7 @@ 1.4 * risk. This code and its internal interfaces are subject to change 1.5 * or deletion without notice.</b> 1.6 */ 1.7 +@SuppressWarnings("deprecation") 1.8 public class Main { 1.9 1.10 /** For testing: enter any options you want to be set implicitly 1.11 @@ -780,7 +781,6 @@ 1.12 // prefixed to command line arguments. 1.13 processArgs(forcedOpts); 1.14 1.15 - 1.16 /* 1.17 * A run of apt only gets passed the most recently generated 1.18 * files; the initial run of apt gets passed the files from 1.19 @@ -792,6 +792,11 @@ 1.20 // assign args the result of parse to capture results of 1.21 // '@file' expansion 1.22 origFilenames = processArgs((args=CommandLine.parse(args))); 1.23 + 1.24 + if (options.get("suppress-tool-api-removal-message") == null) { 1.25 + Bark.printLines(out, getLocalizedString("misc.Deprecation")); 1.26 + } 1.27 + 1.28 if (origFilenames == null) { 1.29 return EXIT_CMDERR; 1.30 } else if (origFilenames.size() == 0) {