Issue: Jira
@SuppressWarnings at a function level is rarely useful.
More often, the warning you want to suppress is a very specific line of code that is giving you a warning that you know to be invalid.
For example, if there is a call to a function that is shows a “The function X is not applicable for arguments…” warning, if the developer know the call is valid, they can suppress this warning by adding a “@SuppressWarnings(wrongparameters)” annotation to the function header.
This however, is terrible, because now any future changes to this method that may also have invalid parameters, will not be caught by the checker, and could very well be a bug. And as such, it is dangerous to use that kind of suppression at a function level.
On the other hand, you are left with not adding function level suppression so that you are sure to always see appropriate warnings. This of course litters your warnings list with thousands of false-positive warnings that you cannot suppress for want of making sure you see proper warnings. This severely decreases the utility of having a warnings list in the first place because the noise-to-signal ratio is off the charts.
If the developer had the ability to place Inline @SuppressWarnings, this would solve the majority of these issues. I imagine it would work something like inline type annotations would work
/** @SuppressWarnings(wrongparameters) */
scopes.generic.foundsetProcess(foundset);