1.1 --- a/src/share/classes/com/sun/tools/javac/code/Lint.java Mon Nov 29 10:09:48 2010 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Lint.java Mon Nov 29 14:15:36 2010 -0800 1.3 @@ -165,6 +165,11 @@ 1.4 FINALLY("finally"), 1.5 1.6 /** 1.7 + * Warn about issues relating to use of command line options 1.8 + */ 1.9 + OPTIONS("options"), 1.10 + 1.11 + /** 1.12 * Warn about issues regarding method overrides. 1.13 */ 1.14 OVERRIDES("overrides"), 1.15 @@ -182,39 +187,39 @@ 1.16 PROCESSING("processing"), 1.17 1.18 /** 1.19 + * Warn about unchecked operations on raw types. 1.20 + */ 1.21 + RAW("rawtypes"), 1.22 + 1.23 + /** 1.24 * Warn about Serializable classes that do not provide a serial version ID. 1.25 */ 1.26 SERIAL("serial"), 1.27 1.28 /** 1.29 + * Warn about issues relating to use of statics 1.30 + */ 1.31 + STATIC("static"), 1.32 + 1.33 + /** 1.34 + * Warn about proprietary API that may be removed in a future release. 1.35 + */ 1.36 + SUNAPI("sunapi", true), 1.37 + 1.38 + /** 1.39 + * Warn about issues relating to use of try blocks (i.e. try-with-resources) 1.40 + */ 1.41 + TRY("try"), 1.42 + 1.43 + /** 1.44 * Warn about unchecked operations on raw types. 1.45 */ 1.46 UNCHECKED("unchecked"), 1.47 1.48 /** 1.49 - * Warn about unchecked operations on raw types. 1.50 - */ 1.51 - RAW("rawtypes"), 1.52 - 1.53 - /** 1.54 - * Warn about proprietary API that may be removed in a future release. 1.55 - */ 1.56 - SUNAPI("sunapi", true), 1.57 - 1.58 - /** 1.59 - * Warn about issues relating to use of statics 1.60 - */ 1.61 - STATIC("static"), 1.62 - 1.63 - /** 1.64 * Warn about potentially unsafe vararg methods 1.65 */ 1.66 - VARARGS("varargs"), 1.67 - 1.68 - /** 1.69 - * Warn about issues relating to use of try blocks (i.e. try-with-resources) 1.70 - */ 1.71 - TRY("try"); 1.72 + VARARGS("varargs"); 1.73 1.74 LintCategory(String option) { 1.75 this(option, false);