Package info.freelibrary.util.warnings
Class JDK
- java.lang.Object
-
- info.freelibrary.util.warnings.JDK
-
public final class JDK extends Object
Constants for suppressing checks.
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUXILIARY_CLASS
Warn about an auxiliary class that is hidden in a source file, and is used from other files.static String
CAST
Warn about use of unnecessary casts.static String
CLASSFILE
Warn about issues related to classfile contents.static String
DEPRECATED_ANNO
Warn about items marked as deprecated in JavaDoc but not using the @Deprecated annotation.static String
DEPRECATION
Warn about use of deprecated items.static String
DIV_BY_ZERO
Warn about division by constant integer 0.static String
EMPTY
Warn about empty statement after if.static String
EXPORTS
Warn about issues regarding module exports.static String
FALLTHROUGH
Warn about falling through from one case of a switch statement to the next.static String
FINALLY
Warn about finally clauses that do not terminate normally.static String
MODULE
Warn about module system related issues.static String
OPENS
Warn about issues regarding module opens.static String
OPTIONS
Warn about issues relating to use of command line options.static String
OVERLOADS
Warn about issues regarding method overloads.static String
OVERRIDES
Warn about issues regarding method overrides.static String
PATH
Warn about invalid path elements on the command line.static String
PREVIEW
Warn about use of preview language features.static String
PROCESSING
Warn about issues regarding annotation processing.static String
RAW_TYPES
Warn about use of raw types.static String
REMOVAL
Warn about use of API that has been marked for removal.static String
REQUIRES_AUTOMATIC
Warn about use of automatic modules in the requires clauses.static String
REQUIRES_TRANSITIVE_AUTO
Warn about automatic modules in requires transitive.static String
SERIAL
Warn about Serializable classes that do not provide a serial version ID.static String
STATIC
Warn about accessing a static member using an instance.static String
TRY
Warn about issues relating to use of try blocks (i.e.static String
UNCHECKED
Suppresses unchecked conversions.static String
VARARGS
Warn about potentially unsafe varargs methods.
-
-
-
Field Detail
-
AUXILIARY_CLASS
public static final String AUXILIARY_CLASS
Warn about an auxiliary class that is hidden in a source file, and is used from other files.- See Also:
- Constant Field Values
-
CAST
public static final String CAST
Warn about use of unnecessary casts.- See Also:
- Constant Field Values
-
CLASSFILE
public static final String CLASSFILE
Warn about issues related to classfile contents.- See Also:
- Constant Field Values
-
DEPRECATED_ANNO
public static final String DEPRECATED_ANNO
Warn about items marked as deprecated in JavaDoc but not using the @Deprecated annotation.- See Also:
- Constant Field Values
-
DEPRECATION
public static final String DEPRECATION
Warn about use of deprecated items.- See Also:
- Constant Field Values
-
DIV_BY_ZERO
public static final String DIV_BY_ZERO
Warn about division by constant integer 0.- See Also:
- Constant Field Values
-
EMPTY
public static final String EMPTY
Warn about empty statement after if.- See Also:
- Constant Field Values
-
EXPORTS
public static final String EXPORTS
Warn about issues regarding module exports.- See Also:
- Constant Field Values
-
FALLTHROUGH
public static final String FALLTHROUGH
Warn about falling through from one case of a switch statement to the next.- See Also:
- Constant Field Values
-
FINALLY
public static final String FINALLY
Warn about finally clauses that do not terminate normally.- See Also:
- Constant Field Values
-
MODULE
public static final String MODULE
Warn about module system related issues.- See Also:
- Constant Field Values
-
OPENS
public static final String OPENS
Warn about issues regarding module opens.- See Also:
- Constant Field Values
-
OPTIONS
public static final String OPTIONS
Warn about issues relating to use of command line options.- See Also:
- Constant Field Values
-
OVERLOADS
public static final String OVERLOADS
Warn about issues regarding method overloads.- See Also:
- Constant Field Values
-
OVERRIDES
public static final String OVERRIDES
Warn about issues regarding method overrides.- See Also:
- Constant Field Values
-
PATH
public static final String PATH
Warn about invalid path elements on the command line.- See Also:
- Constant Field Values
-
PREVIEW
public static final String PREVIEW
Warn about use of preview language features.- See Also:
- Constant Field Values
-
PROCESSING
public static final String PROCESSING
Warn about issues regarding annotation processing.- See Also:
- Constant Field Values
-
RAW_TYPES
public static final String RAW_TYPES
Warn about use of raw types.- See Also:
- Constant Field Values
-
REMOVAL
public static final String REMOVAL
Warn about use of API that has been marked for removal.- See Also:
- Constant Field Values
-
REQUIRES_AUTOMATIC
public static final String REQUIRES_AUTOMATIC
Warn about use of automatic modules in the requires clauses.- See Also:
- Constant Field Values
-
REQUIRES_TRANSITIVE_AUTO
public static final String REQUIRES_TRANSITIVE_AUTO
Warn about automatic modules in requires transitive.- See Also:
- Constant Field Values
-
SERIAL
public static final String SERIAL
Warn about Serializable classes that do not provide a serial version ID. Also warn about access to non-public members from a serializable element.- See Also:
- Constant Field Values
-
STATIC
public static final String STATIC
Warn about accessing a static member using an instance.- See Also:
- Constant Field Values
-
TRY
public static final String TRY
Warn about issues relating to use of try blocks (i.e. try-with-resources).- See Also:
- Constant Field Values
-
UNCHECKED
public static final String UNCHECKED
Suppresses unchecked conversions.- See Also:
- Constant Field Values
-
VARARGS
public static final String VARARGS
Warn about potentially unsafe varargs methods.- See Also:
- Constant Field Values
-
-