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 - Editor warns about unused fields but has no option to suppress warning
Summary: Editor warns about unused fields but has no option to suppress warning
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-04 23:58 UTC by peterbecker
Modified: 2016-03-31 11:31 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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'.