@SuppressWarnings ("XXXX") to suppress compile-time warning messages. The parameters are as follows:
Key words |
Use |
All |
To suppress all warnings |
Boxing |
To suppress warnings relative to boxing/unboxing operations |
Cast |
To suppress warnings relative to cast operations |
Dep-ann |
To suppress warnings relative to deprecated annotation |
Deprecation |
To suppress warnings relative to deprecation |
Fallthrough |
To suppress warnings relative to missing breaks in switch statements |
Finally |
To suppress warnings relative-finally block that don ' t return |
hiding |
To suppress warnings relative to locals that hide variable |
Incomplete-switch |
To suppress warnings relative to missing entries in a switch statement (enum case) |
Nls |
To suppress warnings relative to non-nls string literals |
Null |
To suppress warnings relative to null analysis |
Rawtypes |
To suppress warnings relative to un-specific types if using generics on class params |
Restriction |
To suppress warnings relative to usage of discouraged or forbidden references |
Serial |
To suppress warnings relative to missing serialversionuid field for a serializable class |
Static-access |
o Suppress warnings relative to incorrect static access |
Synthetic-access |
To suppress warnings relative to unoptimized access from inner classes |
Unchecked |
To suppress warnings relative to unchecked operations |
Unqualified-field-access |
To suppress warnings relative to field access unqualified |
Unused |
To suppress warnings relative to unused code |
@SuppressWarnings suppression Warnings