Syntax:
@SuppressWarnings("unused") @SuppressWarnings({"rawtypes","unchecked"})
Werte:
Wert | Grund der Warnungen | Cut&Paste |
---|---|---|
all | alle | @SuppressWarnings("all") |
boxing | boxing/unboxing operations | @SuppressWarnings("boxing") |
cast | cast operations | @SuppressWarnings("cast") |
dep-ann | deprecated annotation | @SuppressWarnings("dep-ann") |
deprecation | deprecation | @SuppressWarnings("deprecation") |
fallthrough | missing breaks in switch statements | @SuppressWarnings("fallthrough") |
finally | finally block that don’t return | @SuppressWarnings("finally") |
hiding | locals that hide variable | @SuppressWarnings("hiding") |
incomplete-switch | missing entries in a switch statement (enum case) | @SuppressWarnings("incomplete-switch") |
nls | non-nls string literals | @SuppressWarnings("nls") |
null | null analysis | @SuppressWarnings("null") |
rawtypes | un-specific types when using generics on class params | @SuppressWarnings("rawtypes") |
restriction | usage of discouraged or forbidden references | @SuppressWarnings("restriction") |
serial | missing serialVersionUID field for a serializable class | @SuppressWarnings("serial") |
static-access | incorrect static access | @SuppressWarnings("static-access") |
synthetic-access | unoptimized access from inner classes | @SuppressWarnings("synthetic-access") |
unchecked | unchecked operations | @SuppressWarnings("unchecked") |
unqualified-field-access | field access unqualified | @SuppressWarnings("nqualified-field-access") |
unused | unused code | @SuppressWarnings("unused") |