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

Collapse All | Expand All

(-)CodeFormatterVisitor.java (-2 / +2 lines)
Lines 1486-1492 Link Here
1486
	private void formatLocalDeclaration(LocalDeclaration localDeclaration, BlockScope scope, boolean insertSpaceBeforeComma, boolean insertSpaceAfterComma) {
1486
	private void formatLocalDeclaration(LocalDeclaration localDeclaration, BlockScope scope, boolean insertSpaceBeforeComma, boolean insertSpaceAfterComma) {
1487
1487
1488
		if (!isMultipleLocalDeclaration(localDeclaration)) {
1488
		if (!isMultipleLocalDeclaration(localDeclaration)) {
1489
			if (localDeclaration.modifiers != NO_MODIFIERS) {
1489
			if (localDeclaration.modifiers != NO_MODIFIERS || localDeclaration.annotations != null) {
1490
		        this.scribe.printComment();
1490
		        this.scribe.printComment();
1491
				this.scribe.printModifiers(localDeclaration.annotations, this);
1491
				this.scribe.printModifiers(localDeclaration.annotations, this);
1492
				this.scribe.space();
1492
				this.scribe.space();
Lines 2268-2274 Link Here
2268
	 */
2268
	 */
2269
	public boolean visit(Argument argument, BlockScope scope) {
2269
	public boolean visit(Argument argument, BlockScope scope) {
2270
2270
2271
		if (argument.modifiers != NO_MODIFIERS) {
2271
		if (argument.modifiers != NO_MODIFIERS || argument.annotations != null) {
2272
	        this.scribe.printComment();
2272
	        this.scribe.printComment();
2273
			this.scribe.printModifiers(argument.annotations, this);
2273
			this.scribe.printModifiers(argument.annotations, this);
2274
			this.scribe.space();
2274
			this.scribe.space();

Return to bug 93727