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.
NetBeans-JavaFX-Soma: #65 Product Version = NetBeans IDE 6.8 RC1 (Build 200911252200) (#3c4d4f8d3d55) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Format the code: ---------------------------------------------------- public function sign(x:Number):Integer { if( x <0 ) { -1 } else if(0 < x) { 1 } else { 0 } } ---------------------------------------------------- The result is: ---------------------------------------------------- public function sign(x: Number): Integer { if (x < 0) { -1 } else if (0 < x) { 1 } else { 0 } } ----------------------------------------------------
That's correct. If user wants all on one line then he should write expression not in block (without curly braces): ----- if (x < 0) -1 else if (0 < x) 1 else 0 -----
verified