### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java,v retrieving revision 1.214.2.1 diff -u -r1.214.2.1 CodeFormatterVisitor.java --- formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java 18 Jun 2009 09:34:30 -0000 1.214.2.1 +++ formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java 5 Jan 2010 13:23:50 -0000 @@ -3333,8 +3333,10 @@ if (this.preferences.indent_statements_compare_to_body) { this.scribe.unIndent(); } - } else if (this.preferences.insert_new_line_in_empty_method_body) { - this.scribe.printNewLine(); + } else { + if (this.preferences.insert_new_line_in_empty_method_body) { + this.scribe.printNewLine(); + } if (this.preferences.indent_statements_compare_to_body) { this.scribe.indent(); } @@ -4232,8 +4234,10 @@ if (this.preferences.indent_statements_compare_to_body) { this.scribe.unIndent(); } - } else if (this.preferences.insert_new_line_in_empty_method_body) { - this.scribe.printNewLine(); + } else { + if (this.preferences.insert_new_line_in_empty_method_body) { + this.scribe.printNewLine(); + } if (this.preferences.indent_statements_compare_to_body) { this.scribe.indent(); }