< prev index next >

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

Print this page
rev 3467 : [mq]: 8153362-phase1


 213         SERIAL("serial"),
 214 
 215         /**
 216          * Warn about issues relating to use of statics
 217          */
 218         STATIC("static"),
 219 
 220         /**
 221          * Warn about issues relating to use of try blocks (i.e. try-with-resources)
 222          */
 223         TRY("try"),
 224 
 225         /**
 226          * Warn about unchecked operations on raw types.
 227          */
 228         UNCHECKED("unchecked"),
 229 
 230         /**
 231          * Warn about potentially unsafe vararg methods
 232          */
 233         VARARGS("varargs");





 234 
 235         LintCategory(String option) {
 236             this(option, false);
 237         }
 238 
 239         LintCategory(String option, boolean hidden) {
 240             this.option = option;
 241             this.hidden = hidden;
 242             map.put(option, this);
 243         }
 244 
 245         static LintCategory get(String option) {
 246             return map.get(option);
 247         }
 248 
 249         public final String option;
 250         public final boolean hidden;
 251     }
 252 
 253     /**




 213         SERIAL("serial"),
 214 
 215         /**
 216          * Warn about issues relating to use of statics
 217          */
 218         STATIC("static"),
 219 
 220         /**
 221          * Warn about issues relating to use of try blocks (i.e. try-with-resources)
 222          */
 223         TRY("try"),
 224 
 225         /**
 226          * Warn about unchecked operations on raw types.
 227          */
 228         UNCHECKED("unchecked"),
 229 
 230         /**
 231          * Warn about potentially unsafe vararg methods
 232          */
 233         VARARGS("varargs"),
 234 
 235         /**
 236          * Warn about unexported types being used in public APIs.
 237          */
 238         LEAKS_NOT_ACCESSIBLE("leaksnotaccessible");
 239 
 240         LintCategory(String option) {
 241             this(option, false);
 242         }
 243 
 244         LintCategory(String option, boolean hidden) {
 245             this.option = option;
 246             this.hidden = hidden;
 247             map.put(option, this);
 248         }
 249 
 250         static LintCategory get(String option) {
 251             return map.get(option);
 252         }
 253 
 254         public final String option;
 255         public final boolean hidden;
 256     }
 257 
 258     /**


< prev index next >