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.
Created attachment 103256 [details] Options Export of Editor Options Product Version: NetBeans IDE 7.0 Beta (Build 201011152355) Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\kjs.DBADMIN\.netbeans\7.0beta I'm noticing something strange with the Source/Format action when dealing with anonymous inner classes. I use the "brace on new line" formatting option: MyClass = new SuperClass() { @Override protected void overriddenMethod() { . . . } }; The format action is placing an additional new line between the first brace and the assignment. When I change to "brace on same line", the first brace is indented by an additional space each time I format. I've attached my editor options.
Already fixed in the current dev build. *** This bug has been marked as a duplicate of bug 191786 ***