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.
Using the "Global Options" I set to TRUE the parameter <<Compound Bracket on Next Line>>: - Editor Settings - - Java Editor - - - << Compound Bracket on Next Line >> Then, while editing a file, I selected a group of lines that included brackets as follow: ---------------------------------- if( true == true ) { System.out.println("True"); } if( false == true ) { System.out.println("False"); } -------------------------------- then Rigth-Clicked the mouse to select the << Reformat Code >> and obtained following set of lines: -------------------------------- if( true==true ) { System.out.println("True"); } if( false == true ) { System.out.println("False"); } -------------------------------- The first group of brackets are correctly moved one line down. Note: the EMPTY LINE after the "if ( false == true )" If I repeat the "Reformat Code" process, new empty lines keep being added for both goups: -------------------------------------- if( true==true ) { System.out.println("True"); } if( false == true ) { System.out.println("False"); } ------------------------------------ This looks like an incorrect behavior, right ? Nicolas
Only changed version to Development.
It seems to be fixed for me. Tested on boston 1160 and netbeans r3.1 36, netbeans 118.
Resolved for 3.3.x or earlier, no new info since then -> closing.