Via @SuppressWarnings
annotation:
@SuppressWarnings("serial")
public static class TFrame extends Frame {
}
Current tokens include (according to the build notes, officially undocumented):
all : any warning
boxing: autoboxing conversion
dep-ann: missing @Deprecated annotation
deprecation: deprecation outside deprecated code
incomplete-switch: incomplete enum switch
hiding: field hiding another variable, local variable hiding, type paramneter hiding another type. or hidden catch block
finally: finally block not completing normally
static-access: indirect reference to static member or non-static reference to static member
maskedCatchBlock: hidden catch block
nls: string literal lacking non-nls tag //$NON-NLS-<n>$
serial: missing serialVersionUID
unqualified-field-access: unqualified reference to field
unchecked: unchecked type operation
unused: unread method parameter, local variable, private member, or declared thrown exception
syntheticAccess: synthetic access for innerclass
"Note that these are subject to changing in the near future."