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.
Product Version = NetBeans IDE 7.1 (Build 201112051121) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.7.0_01 Runtime = Java HotSpot(TM) Client VM 21.1-b02 given: if (condition) {statement} - Options, Formatting, Java, Wrapping - Set "If-Statement" to "Never" or "If long") - In sorce press Shift+Alt-f to format code --> NB inserts wrapping after and before the curly braces :( if (condition) { statement } Omminting the wrapping works only, if braces are ommited. Shall work even thoug braces are used (or forced).
Currently, keeping simple blocks|methods|classes in one line is not supported by NB Java Reformatter. Marking as RFE.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss