As the title asks, how do I suppress the warning for just the method? Is this possible?
A little background: I'm using a JavaScript bridge and it hooks into these methods, so I'd like to suppress this warning. What I would like to avoid is the annotation preventing warnings for unused variables within the method. I'm currently just using the @SuppressWarnings("unused")
before the method declaration, but this suppresses everything.
As far as I know, there is no way to scope SurpressWarning to the method declaration only.
This leaves you with these possibilities: