Community
Participate
Working Groups
Build ID: I20070621-1340 Steps To Reproduce: public void method() { for (int i = 0; i < 10; i++) { System.out.println(i); { System.out.println(i); System.out.println(i); } } } After formatting, should read: public void method() { for (int i = 0; i < 10; i++) { System.out.println(i); { System.out.println(i); System.out.println(i); } } } More information: Probably requires extra options in the blank lines section. One possible implementation would be two additional checkboxes on the Blank Lines tab: 1) "Remove blank lines at the beginning of blocks." 2) "Remove blank lines at the end of blocks." Could also be implemented with two "number of lines to preserve" style options instead. Either way, these setting must override "Number of empty lines to preserve" to be useful. As a side suggestion, maybe "Blank lines withing class declarations / At beginning of method body" should override "Number of empty lines to preserve"?
Ownership has changed for the formatter, but I surely will not have enough time to fix your bug during the 3.5 development process, hence set its priority to P5. Please provide a patch if you definitely need the bug to be fixed in this version and I'll have a look at it... TIA
*** This bug has been marked as a duplicate of bug 212867 ***