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

Summary: Too many keystrokes to get UseOfSystemOutOrSystemErr for @SuppressWarnings in test/... files
Product: java Reporter: err <err>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P4    
Version: 8.0.2   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

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.