Index: CodeFormatterVisitor.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/formatter/org/eclipse/jdt/internal/formatter/CodeFormatterVisitor.java,v retrieving revision 1.157 diff -u -r1.157 CodeFormatterVisitor.java --- CodeFormatterVisitor.java 5 Apr 2005 14:34:30 -0000 1.157 +++ CodeFormatterVisitor.java 11 May 2005 19:16:22 -0000 @@ -1486,7 +1486,7 @@ private void formatLocalDeclaration(LocalDeclaration localDeclaration, BlockScope scope, boolean insertSpaceBeforeComma, boolean insertSpaceAfterComma) { if (!isMultipleLocalDeclaration(localDeclaration)) { - if (localDeclaration.modifiers != NO_MODIFIERS) { + if (localDeclaration.modifiers != NO_MODIFIERS || localDeclaration.annotations != null) { this.scribe.printComment(); this.scribe.printModifiers(localDeclaration.annotations, this); this.scribe.space(); @@ -2268,7 +2268,7 @@ */ public boolean visit(Argument argument, BlockScope scope) { - if (argument.modifiers != NO_MODIFIERS) { + if (argument.modifiers != NO_MODIFIERS || argument.annotations != null) { this.scribe.printComment(); this.scribe.printModifiers(argument.annotations, this); this.scribe.space();