How to use SuppressWarnings for unused method parameters (only)

I have a method in a JSF backing bean that looks something like this:

publicvoid clickButton(ActionEvent ae)

{

// do the same thing every time

}

and since "ae" is not used, I get a warning from javac to that effect.

I realize that I can do this:

@SuppressWarnings("unused")

publicvoid clickButton(ActionEvent ae)

{

// do the same thing every time

}

but the problem with that is that is suppresses ALL unused-type warnings in the entire method.

What I would like to do is this

publicvoid clickButton(@SuppressWarnings("unused") ActionEvent ae)

{

// do the same thing every time

}

but that does not seem to be supported. I still get the warnings from javac. I am using 1.5.0_07-b03.Any suggestions?

[1325 byte] By [asefa] at [2007-10-3 9:56:58]
# 1
I do not believe that javac has an unused warning category. So perhaps this is some problem with Eclipse?
PeterAhea at 2007-7-15 5:15:06 > top of Java-index,Developer Tools,Java Compiler...