1.1 --- a/src/share/classes/com/sun/tools/javac/code/Lint.java Fri Aug 21 11:25:45 2009 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Lint.java Fri Aug 21 14:58:21 2009 -0700 1.3 @@ -193,10 +193,20 @@ 1.4 /** 1.5 * Warn about unchecked operations on raw types. 1.6 */ 1.7 - RAW("rawtypes"); 1.8 + RAW("rawtypes"), 1.9 + 1.10 + /** 1.11 + * Warn about Sun proprietary API that may be removed in a future release. 1.12 + */ 1.13 + SUNAPI("sunapi", true); 1.14 1.15 LintCategory(String option) { 1.16 + this(option, false); 1.17 + } 1.18 + 1.19 + LintCategory(String option, boolean hidden) { 1.20 this.option = option; 1.21 + this.hidden = hidden; 1.22 map.put(option, this); 1.23 } 1.24 1.25 @@ -205,6 +215,7 @@ 1.26 } 1.27 1.28 public final String option; 1.29 + public final boolean hidden; 1.30 }; 1.31 1.32 /**