Listes des valeurs pour @SuppressWarnings(”xx”)
java October 13th, 2007Voici la liste des valeurs qu’il est possible de passer en paramètre à l’annotation @SuppressWarnings.
- all : any warning
- boxing : autoboxing conversion
- dep-ann : missing @Deprecated annotation
- deprecation : deprecation outside deprecated code
- incomplete-switch : incomplete enum switch (enumSwitch)
- hiding : field hiding another variable (fieldHiding) - local variable hiding another variable (localHiding) - type parameter hiding another type (typeHiding) - hidden catch block (maskedCatchBlock)
- finally : finally block not completing normally
- static-access : indirect reference to static member (indirectStatic) - non-static reference to static member (staticReceiver)
- nls : string literal lacking non-nls tag //$NON-NLS-
$ - serial : missing serialVersionUID
- unqualified-field-access : unqualified reference to field (unQualifiedField)
- unchecked : unchecked type operation
- unused : unread method parameter (unusedArgument) - unread local variable (unusedLocal) - unused private member declaration (unusedPrivate) - unused declared thrown exception (unusedThrown)
- synthetic-access : synthetic access for innerclass (syntheticAccess)

Recent Comments