Closed leventov closed 8 years ago
It should work, but to use it, you have to implement custom annotation starting with Suppress and anding with Warning. I suggest this:
@interface SuppressHuntBugsWarning { String value(); }
And use it @SuppressHuntBugsWarning("all") or @SuppressHuntBugsWarning("*").
@SuppressHuntBugsWarning("all")
@SuppressHuntBugsWarning("*")
Standard java.lang.SuppressWarnings does not work, because it has source retention, so it does not appear in bytecode.
java.lang.SuppressWarnings
Thanks @amaembo. FindBugs's SuppressFBWarnings will work?
Seems unlikely due to ending -s. If you want to reuse it, consider posting a pull-request to support Suppress...Warnings annotations as well.
It should work, but to use it, you have to implement custom annotation starting with Suppress and anding with Warning. I suggest this:
And use it
@SuppressHuntBugsWarning("all")
or@SuppressHuntBugsWarning("*")
.Standard
java.lang.SuppressWarnings
does not work, because it has source retention, so it does not appear in bytecode.