I have a method in a JSF backing bean that looks something like this:
public void 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")
public void 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
public void 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?