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 213384 - Adding annotation to inner class breaks indentation
Summary: Adding annotation to inner class breaks indentation
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-01 10:37 UTC by Jiri Prox
Modified: 2014-07-03 12:37 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 Jiri Prox 2012-06-01 10:37:05 UTC
Adding class annotation to inner class break indentation.

Steps to reproduce:
1) enable Encapsulations hints
2) have a inner class
    class Inner {

    }

3) use hint to add suppress warning for inner class
    @SuppressWarnings("PackageVisibleInnerClass")
class Inner {     // <- this is moved to the 1st column
        
    }


Product Version: NetBeans IDE Dev (Build 201205310022)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows 7 version 6.1 running on x86; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Svata Dedic 2014-07-03 12:37:13 UTC
Worksforme in the current dev build - that is provided that the code is formatted OK. if there's some extra space before the class Inner, the annotation will be indented using that extra spacing.