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

Summary: Adding annotation to inner class breaks indentation
Product: java Reporter: Jiri Prox <jiriprox>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P4    
Version: 7.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

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.