This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The SuppressWarnings annotation should have optional attribute containing justification for a supression.
Created attachment 127038 [details] patch
Please review.
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] updated patch 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) Changeset: http://hg.netbeans.org/main-golden/rev/40e79aca5d09 User: Petr Hejl <phejl@netbeans.org> Log: #221381 - Enhance SuppressWarnings annotation with justification