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 250703 - Too many keystrokes to get UseOfSystemOutOrSystemErr for @SuppressWarnings in test/... files
Summary: Too many keystrokes to get UseOfSystemOutOrSystemErr for @SuppressWarnings in...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2015-02-25 17:13 UTC by err
Modified: 2015-03-18 01:47 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description err 2015-02-25 17:13:57 UTC
In my junit tests, I often use System.out and System.err. In order to supress the warnings, after seeing the lightbulb and entering ALT-RETURN I get the
    Remove Statement
hint. From there, it takes 6 keystrokes to get the SupressWarnings, 5 of them are arrow keys.

One thought is that a slightly different set of hints would be nice for things under the .../test/... source directly. Another is having a 2nd hint for this condition with that instead of saying "remove statement" offered
    Suppress Warning
as the default fix.
Comment 1 err 2015-03-18 01:47:43 UTC
While I do think it is too many keystrokes, there are workarounds... lower prio. Could be closed.