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 206135 - [71cat] wrapping even though switched of
Summary: [71cat] wrapping even though switched of
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.1
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-08 13:23 UTC by muellermi
Modified: 2016-07-07 07:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2011-12-08 13:23:31 UTC
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).
Comment 1 Dusan Balek 2012-04-13 09:22:56 UTC
Currently, keeping simple blocks|methods|classes in one line is not supported by NB Java Reformatter. Marking as RFE.
Comment 2 Martin Balin 2016-07-07 07:31:59 UTC
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