Community
Participate
Working Groups
The following code gets formatted correctly: public class Foo { public void foo() { Action action = new AbstractAction("name") { public void actionPerformed(ActionEvent e) { } }; } } If you add a comment (for example a $NON-NLS comment) at the end of the third line, the formatter seems to get confused: public class Foo { public void foo() { Action action = new AbstractAction("name") { // $NON-NLS public void actionPerformed(ActionEvent e) { } }; } }
*** This bug has been marked as a duplicate of 40777 ***