langtools/src/share/classes/com/sun/tools/javac/code/Lint.java
changeset 7335 8b390fd27190
parent 7211 163fe60f63de
child 7624 c31b0ea95b37
equal deleted inserted replaced
7334:f432af22de29 7335:8b390fd27190
   163          * Warn about finally clauses that do not terminate normally.
   163          * Warn about finally clauses that do not terminate normally.
   164          */
   164          */
   165         FINALLY("finally"),
   165         FINALLY("finally"),
   166 
   166 
   167         /**
   167         /**
       
   168          * Warn about issues relating to use of command line options
       
   169          */
       
   170         OPTIONS("options"),
       
   171 
       
   172         /**
   168          * Warn about issues regarding method overrides.
   173          * Warn about issues regarding method overrides.
   169          */
   174          */
   170         OVERRIDES("overrides"),
   175         OVERRIDES("overrides"),
   171 
   176 
   172         /**
   177         /**
   180          * Warn about issues regarding annotation processing.
   185          * Warn about issues regarding annotation processing.
   181          */
   186          */
   182         PROCESSING("processing"),
   187         PROCESSING("processing"),
   183 
   188 
   184         /**
   189         /**
       
   190          * Warn about unchecked operations on raw types.
       
   191          */
       
   192         RAW("rawtypes"),
       
   193 
       
   194         /**
   185          * Warn about Serializable classes that do not provide a serial version ID.
   195          * Warn about Serializable classes that do not provide a serial version ID.
   186          */
   196          */
   187         SERIAL("serial"),
   197         SERIAL("serial"),
   188 
   198 
   189         /**
   199         /**
       
   200          * Warn about issues relating to use of statics
       
   201          */
       
   202         STATIC("static"),
       
   203 
       
   204         /**
       
   205          * Warn about proprietary API that may be removed in a future release.
       
   206          */
       
   207         SUNAPI("sunapi", true),
       
   208 
       
   209         /**
       
   210          * Warn about issues relating to use of try blocks (i.e. try-with-resources)
       
   211          */
       
   212         TRY("try"),
       
   213 
       
   214         /**
   190          * Warn about unchecked operations on raw types.
   215          * Warn about unchecked operations on raw types.
   191          */
   216          */
   192         UNCHECKED("unchecked"),
   217         UNCHECKED("unchecked"),
   193 
   218 
   194         /**
   219         /**
   195          * Warn about unchecked operations on raw types.
       
   196          */
       
   197         RAW("rawtypes"),
       
   198 
       
   199         /**
       
   200          * Warn about proprietary API that may be removed in a future release.
       
   201          */
       
   202         SUNAPI("sunapi", true),
       
   203 
       
   204         /**
       
   205          * Warn about issues relating to use of statics
       
   206          */
       
   207         STATIC("static"),
       
   208 
       
   209         /**
       
   210          * Warn about potentially unsafe vararg methods
   220          * Warn about potentially unsafe vararg methods
   211          */
   221          */
   212         VARARGS("varargs"),
   222         VARARGS("varargs");
   213 
       
   214         /**
       
   215          * Warn about issues relating to use of try blocks (i.e. try-with-resources)
       
   216          */
       
   217         TRY("try");
       
   218 
   223 
   219         LintCategory(String option) {
   224         LintCategory(String option) {
   220             this(option, false);
   225             this(option, false);
   221         }
   226         }
   222 
   227