Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » List of supported warning tokens
List of supported warning tokens [message #207058] Fri, 17 June 2005 03:47 Go to next message
Eclipse UserFriend
Originally posted by: newsserver_mails.bodden.de

Hi. Is there a list of the warning tokens currently being supported by
SuppressWarnings? In particular, "unusedArgument" seemed to be working
prior to 3.1RC2 but now not any more...

Cheers,
Eric

--
Eric Bodden, ICQ: 12656220, http://www.bodden.de, PGP: BB465582
Arithmetic Coding - educational example code and more
http://ac.bodden.de/
Re: List of supported warning tokens [message #207101 is a reply to message #207058] Fri, 17 June 2005 05:11 Go to previous messageGo to next message
Eclipse UserFriend
There are now @SuppressWarnings(...) quickfixes for most of the warnings.
These are the tags that are recognized to my knowledge by JDT Core:

all : any warning
assertIdentifier : ''assert'' used as identifier
boxing : autoboxing conversion
charConcat : char[] in String concat
conditionAssign : possible accidental boolean assignment
constructorName : method with constructor name
dep-ann : missing @Deprecated annotation
deprecation : deprecation outside deprecated code
emptyBlock : undocumented empty block
enumSwitch : incomplete enum switch
fieldHiding : field hiding another variable
finalBound : type parameter with final bound
finally : finally block not completing normally
indirectStatic : indirect reference to static member
intfAnnotation : annotation type used as super interface
intfNonInherited : interface non-inherited method compatibility
javadoc : invalid javadoc
localHiding : local variable hiding another variable
maskedCatchBlock : hidden catch block
nls : string literal lacking non-nls tag //$NON-NLS-<n>$
noEffectAssign : assignment without effect
over-ann : missing @Override annotation
pkgDefaultMethod : attempt to override package-default method
semicolon : unnecessary semicolon, empty statement
serial : missing serialVersionUID
unqualifiedField : unqualified reference to field
unchecked : unchecked type operation
unusedArgument : unread method parameter
unusedImport : unused import declaration
unusedLocal : unread local variable
unusedPrivate : unused private member declaration
unusedThrown : unused declared thrown exception
unnecessaryElse : unnecessary else clause
uselessTypeCheck : unnecessary cast/instanceof operation
specialParamHiding : constructor or setter parameter hiding another field
staticReceiver : non-static reference to static member
syntheticAccess : synthetic access for innerclass
typeHiding : type parameter hiding another type
varargsCast : varargs argument need explicit cast
warningToken : unhandled warning token

Have also a look at the JDT Core buildnotes. If the "unusedArgument" does
not work for your scenarios, please file a bug against JDT Core.

Cheers,

Tobias

"Eric Bodden" <newsserver_mails@bodden.de> wrote in message
news:pbecm64uv5d.10yac2m5fulg.dlg@40tude.net...
> Hi. Is there a list of the warning tokens currently being supported by
> SuppressWarnings? In particular, "unusedArgument" seemed to be working
> prior to 3.1RC2 but now not any more...
>
> Cheers,
> Eric
>
> --
> Eric Bodden, ICQ: 12656220, http://www.bodden.de, PGP: BB465582
> Arithmetic Coding - educational example code and more
> http://ac.bodden.de/
Re: List of supported warning tokens [message #207108 is a reply to message #207101] Fri, 17 June 2005 05:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: newsserver_mails.bodden.de

On Fri, 17 Jun 2005 11:11:47 +0200, Tobias Widmer wrote:

> There are now @SuppressWarnings(...) quickfixes for most of the warnings.
Hmmm... does not seem to work for my unused argument, though. Would also be
great to have code completion for this inside the SuppressWarnings(...)
annotation.

> These are the tags that are recognized to my knowledge by JDT Core:
>
Thanks.

> Have also a look at the JDT Core buildnotes. If the "unusedArgument" does
> not work for your scenarios, please file a bug against JDT Core.
I certainly will.

Cheers,
Eric

--
Eric Bodden, ICQ: 12656220, http://www.bodden.de, PGP: BB465582
Arithmetic Coding Revealed - a comprehensive guide to AC
http://bodden.de/studies/publications/pub_ac_en/
Re: List of supported warning tokens [message #207111 is a reply to message #207108] Fri, 17 June 2005 05:26 Go to previous message
Eclipse UserFriend
Originally posted by: newsserver_mails.bodden.de

FYI, from the build notes:

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 :
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-<n>$
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)


--
Eric Bodden, ICQ: 12656220, http://www.bodden.de, PGP: BB465582
Active Desktop Wallpaper Changer: That's what it is...
http://bodden.de/projects/wpchanger/
Previous Topic:IMethod-Object from a MethodDeclaration
Next Topic:How do I get the active project?
Goto Forum:
  


Current Time: Tue Jul 22 16:25:06 EDT 2025

Powered by FUDForum. Page generated in 0.04302 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top