Community
Participate
Working Groups
Using RC2, on W2K. Formatter options selected - Insert new line before opening brace Insert new lines in control statements Insert a new line inside an empty block The following block of code formats correctly: publishAction = new Action() { public void run() { System.out.println(""); // TODO implement; // publishContent(); } }; The same block, only this time having a comments as the first line inside the run block, formats incorrectly: publishAction = new Action() { public void run() { // System.out.println(""); // TODO implement; // publishContent(); } }; Comes out something like this: publishAction = new Action() { public void run() { // System.out.println(""); // TODO implement; // publishContent(); } };
Post 2.1
Resurrecting for 3.0
Reopen for 3.0 consideration.
This is addressed in the new formatter. Fixed and released in HEAD. Regression test added.
Verified.