2005-11-15 [長年日記]

[Eclipse] JDT coreで使えるSuppressWarningsのリスト

3.1 build notesによる。赤い字はsun Javacで規定されているもの

The new list of supported warning tokens for the @SuppressWarnings annotation is:
  • all : any warning
  • boxing : autoboxing conversion
  • dep-ann : missing @Deprecated annotation
  • deprecation : deprecation outside deprecated code
  • incomplete-switch : incomplete enum switch (enumSwitch)
  • hiding :
    1. field hiding another variable (fieldHiding)
    2. local variable hiding another variable (localHiding)
    3. type parameter hiding another type (typeHiding)
    4. hidden catch block (maskedCatchBlock)
  • finally : finally block not completing normally
  • static-access :
    1. indirect reference to static member (indirectStatic)
    2. non-static reference to static member (staticReceiver)
  • nls : string literal lacking non-nls tag //$NON-NLS-<n>$
  • serial : missing serialVersionUID
  • unqualified-field-access : unqualified reference to field (unQualifiedField)
  • unchecked : unchecked type operation
  • unused :
    1. unread method parameter (unusedArgument)
    2. unread local variable (unusedLocal)
    3. unused private member declaration (unusedPrivate)
    4. unused declared thrown exception (unusedThrown)
  • synthetic-access : synthetic access for innerclass (syntheticAccess)

[]