Community
Participate
Working Groups
Right now, any warning handled by the compiler are supported. Here is the list of the ones we should support using a better naming: all : any warning boxing : autoboxing conversion -----> boxing dep-ann : missing @Deprecated annotation deprecation : deprecation outside deprecated code enumSwitch : incomplete enum switch ------> incomplete-switch fieldHiding : field hiding another variable ------> hiding finally : finally block not completing normally indirectStatic : indirect reference to static member ------> static-access localHiding : local variable hiding another variable ------> hiding maskedCatchBlock : hidden catch block ------> hiding nls : string literal lacking non-nls tag //$NON-NLS-<n>$ -----> nls serial : missing serialVersionUID unqualifiedField : unqualified reference to field ------>unqualified-field-access unchecked : unchecked type operation unusedArgument : unread method parameter ------> unused unusedImport : unused import declaration ------> unused unusedLocal : unread local variable ------> unused unusedPrivate : unused private member declaration ------> unused unusedThrown : unused declared thrown exception ------> unused serial : missing serialVersionUID staticReceiver : non-static reference to static member------> static-access syntheticAccess : synthetic access for innerclass ------> synthetic-access typeHiding : type parameter hiding another type ------> hiding
Fixed and released in HEAD. Update existing tests + added new check in org.eclipse.jdt.core.tests.model.CodeCorrectionTests.testWarningTokens
unusedImport : unused import declaration ------> unused is removed since it is not possible to add a @SuppressWarnings for it.
Verified for 3.1 RC2 using build N20050609-0010 + JDT/Core HEAD
Verified for 3.1 RC2 using build I20050610-0010
Unused imports can now be addressed in 3.2 using @SuppressWarnings("unused"), also see bug 123522