37 |
37 |
38 |
38 |
39 /** |
39 /** |
40 * A class for handling -Xlint suboptions and @SuppresssWarnings. |
40 * A class for handling -Xlint suboptions and @SuppresssWarnings. |
41 * |
41 * |
42 * <p><b>This is NOT part of any API supported by Sun Microsystems. If |
42 * <p><b>This is NOT part of any supported API. |
43 * you write code that depends on this, you do so at your own risk. |
43 * If you write code that depends on this, you do so at your own risk. |
44 * This code and its internal interfaces are subject to change or |
44 * This code and its internal interfaces are subject to change or |
45 * deletion without notice.</b> |
45 * deletion without notice.</b> |
46 */ |
46 */ |
47 public class Lint |
47 public class Lint |
48 { |
48 { |
194 * Warn about unchecked operations on raw types. |
194 * Warn about unchecked operations on raw types. |
195 */ |
195 */ |
196 RAW("rawtypes"), |
196 RAW("rawtypes"), |
197 |
197 |
198 /** |
198 /** |
199 * Warn about Sun proprietary API that may be removed in a future release. |
199 * Warn about proprietary API that may be removed in a future release. |
200 */ |
200 */ |
201 SUNAPI("sunapi", true), |
201 SUNAPI("sunapi", true), |
202 |
202 |
203 /** |
203 /** |
204 * Warn about issues relating to use of statics |
204 * Warn about issues relating to use of statics |
205 */ |
205 */ |
206 STATIC("static"); |
206 STATIC("static"), |
|
207 |
|
208 /** |
|
209 * Warn about potentially unsafe vararg methods |
|
210 */ |
|
211 VARARGS("varargs"); |
207 |
212 |
208 LintCategory(String option) { |
213 LintCategory(String option) { |
209 this(option, false); |
214 this(option, false); |
210 } |
215 } |
211 |
216 |