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 107222 - Executing Hint 'Suppress Warning' removes indentation
Summary: Executing Hint 'Suppress Warning' removes indentation
Status: RESOLVED DUPLICATE of bug 105018
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-19 14:45 UTC by tomzi
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2007-06-19 14:45:52 UTC
Product Version: NetBeans IDE Dev (Build 200706180000) 
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105

.) Create a member variable:

   private Map<String, String> evaluators = Collections.EMPTY_MAP;

-> Code Hint appears '[unchecked] unchecked conversion'
.) Click 'Suppress Warning unchecked'
-> @SuppressWarnings("unchecked") is added
-> However the indentation of the declaration of the member variable is removed, leaveing it on the left side:

private Map<String, String> evaluators = Collections.EMPTY_MAP;
Comment 1 Pavel Flaska 2007-06-26 12:48:31 UTC
In your case, better to fix the problem instead of adding annotation. ;-)
Definitely a problem, already fixed yesterday, different case, but the same reason. Thanks for the report, should work now.

*** This issue has been marked as a duplicate of 105018 ***