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.

Bug 159645

Summary: Editor warns about unused fields but has no option to suppress warning
Product: java Reporter: peterbecker <peterbecker>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker CC: dtrebbien
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
See Also: http://netbeans.org/bugzilla/show_bug.cgi?id=193276
http://netbeans.org/bugzilla/show_bug.cgi?id=208179
Issue Type: ENHANCEMENT Exception Reporter:

Description peterbecker 2009-03-04 23:58:18 UTC
The Java editor warns if there are unused fields, but there is no way to suppress such warnings selectively.

There can be scenarios where some particular elements seem unused but are used in different ways (annotations,
reflection) in which case the warning should be suppressed only locally while keeping the global checks in place. See
e.g. Eclipse's @SuppressWarnings("unused").
Comment 1 Max Sauer 2009-03-31 13:47:10 UTC
Thanks for your hints, targeting 'next'.