Suppress Warnings

Syntax:

@SuppressWarnings("unused")
@SuppressWarnings({"rawtypes","unchecked"})

Werte:

WertGrund der WarnungenCut&Paste
allalle@SuppressWarnings("all")
boxingboxing/unboxing operations@SuppressWarnings("boxing")
castcast operations@SuppressWarnings("cast")
dep-anndeprecated annotation@SuppressWarnings("dep-ann")
deprecationdeprecation@SuppressWarnings("deprecation")
fallthroughmissing breaks in switch statements@SuppressWarnings("fallthrough")
finallyfinally block that don’t return@SuppressWarnings("finally")
hidinglocals that hide variable@SuppressWarnings("hiding")
incomplete-switchmissing entries in a switch statement (enum case)@SuppressWarnings("incomplete-switch")
nlsnon-nls string literals@SuppressWarnings("nls")
nullnull analysis@SuppressWarnings("null")
rawtypesun-specific types when using generics on class params@SuppressWarnings("rawtypes")
restrictionusage of discouraged or forbidden references@SuppressWarnings("restriction")
serialmissing serialVersionUID field for a serializable class@SuppressWarnings("serial")
static-accessincorrect static access@SuppressWarnings("static-access")
synthetic-accessunoptimized access from inner classes@SuppressWarnings("synthetic-access")
uncheckedunchecked operations@SuppressWarnings("unchecked")
unqualified-field-accessfield access unqualified@SuppressWarnings("nqualified-field-access")
unusedunused code@SuppressWarnings("unused")