src/share/classes/com/sun/tools/javac/code/Lint.java

Print this page




 191         UNCHECKED("unchecked"),
 192 
 193         /**
 194          * Warn about unchecked operations on raw types.
 195          */
 196         RAW("rawtypes"),
 197 
 198         /**
 199          * Warn about proprietary API that may be removed in a future release.
 200          */
 201         SUNAPI("sunapi", true),
 202 
 203         /**
 204          * Warn about issues relating to use of statics
 205          */
 206         STATIC("static"),
 207 
 208         /**
 209          * Warn about potentially unsafe vararg methods
 210          */
 211         VARARGS("varargs");





 212 
 213         LintCategory(String option) {
 214             this(option, false);
 215         }
 216 
 217         LintCategory(String option, boolean hidden) {
 218             this.option = option;
 219             this.hidden = hidden;
 220             map.put(option, this);
 221         }
 222 
 223         static LintCategory get(String option) {
 224             return map.get(option);
 225         }
 226 
 227         public final String option;
 228         public final boolean hidden;
 229     };
 230 
 231     /**




 191         UNCHECKED("unchecked"),
 192 
 193         /**
 194          * Warn about unchecked operations on raw types.
 195          */
 196         RAW("rawtypes"),
 197 
 198         /**
 199          * Warn about proprietary API that may be removed in a future release.
 200          */
 201         SUNAPI("sunapi", true),
 202 
 203         /**
 204          * Warn about issues relating to use of statics
 205          */
 206         STATIC("static"),
 207 
 208         /**
 209          * Warn about potentially unsafe vararg methods
 210          */
 211         VARARGS("varargs"),
 212 
 213         /**
 214          * Warn about arm resources
 215          */
 216         ARM("arm");
 217 
 218         LintCategory(String option) {
 219             this(option, false);
 220         }
 221 
 222         LintCategory(String option, boolean hidden) {
 223             this.option = option;
 224             this.hidden = hidden;
 225             map.put(option, this);
 226         }
 227 
 228         static LintCategory get(String option) {
 229             return map.get(option);
 230         }
 231 
 232         public final String option;
 233         public final boolean hidden;
 234     };
 235 
 236     /**