The SuppressWarnings annotation should have optional attribute containing justification for a supression.
Created attachment 127038 [details]
MK1: what happens with the justification? is it used somewhere? or it's just a replacement for a comment?
(In reply to comment #3)
> MK1: what happens with the justification? is it used somewhere? or it's just a
> replacement for a comment?
Yep just a doc like attribute.
Real world example for a FindBugs check:
@org.netbeans.api.annotations.common.SuppressWarnings("DMI_COLLECTION_OF_URLS", justification="Code uses file URLs only")
Thanks for the review. I'll integrate it once trunk is open for non-fixes.
Created attachment 130656 [details]
This patch coverts all present justifications from comment to attribute.
Fixed in web-main 40e79aca5d09.
Integrated into 'main-golden', will be available in build *201301300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Petr Hejl <email@example.com>
Log: #221381 - Enhance SuppressWarnings annotation with justification