View | Details | Raw Unified | Return to bug 298844 | Differences between
and this patch

Collapse All | Expand All

(-)formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java (-4 / +8 lines)
Lines 3333-3340 Link Here
3333
				if (this.preferences.indent_statements_compare_to_body) {
3333
				if (this.preferences.indent_statements_compare_to_body) {
3334
					this.scribe.unIndent();
3334
					this.scribe.unIndent();
3335
				}
3335
				}
3336
			} else if (this.preferences.insert_new_line_in_empty_method_body) {
3336
			} else {
3337
				this.scribe.printNewLine();
3337
				if (this.preferences.insert_new_line_in_empty_method_body) {
3338
					this.scribe.printNewLine();
3339
				}
3338
				if (this.preferences.indent_statements_compare_to_body) {
3340
				if (this.preferences.indent_statements_compare_to_body) {
3339
					this.scribe.indent();
3341
					this.scribe.indent();
3340
				}
3342
				}
Lines 4232-4239 Link Here
4232
				if (this.preferences.indent_statements_compare_to_body) {
4234
				if (this.preferences.indent_statements_compare_to_body) {
4233
					this.scribe.unIndent();
4235
					this.scribe.unIndent();
4234
				}
4236
				}
4235
			} else if (this.preferences.insert_new_line_in_empty_method_body) {
4237
			} else {
4236
				this.scribe.printNewLine();
4238
				if (this.preferences.insert_new_line_in_empty_method_body) {
4239
					this.scribe.printNewLine();
4240
				}
4237
				if (this.preferences.indent_statements_compare_to_body) {
4241
				if (this.preferences.indent_statements_compare_to_body) {
4238
					this.scribe.indent();
4242
					this.scribe.indent();
4239
				}
4243
				}

Return to bug 298844