@Override public Void visitFieldDeclaration(final FieldDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), true); writeModifiers(node.getModifiers()); final FieldDefinition field = node.getUserData(Keys.FIELD_DEFINITION); if (field != null && field.isSynthetic()) { space(lastWritten != LastWritten.Whitespace); formatter.writeComment(CommentType.MultiLine, " synthetic "); space(); } node.getReturnType().acceptVisitor(this, ignored); space(); writeCommaSeparatedList(node.getVariables()); semicolon(); endNode(node); return null; }
@Override public Void visitFieldDeclaration(final FieldDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), true); writeModifiers(node.getModifiers()); final FieldDefinition field = node.getUserData(Keys.FIELD_DEFINITION); if (field != null && field.isSynthetic()) { space(lastWritten != LastWritten.Whitespace); formatter.writeComment(CommentType.MultiLine, " synthetic "); space(); } node.getReturnType().acceptVisitor(this, ignored); space(); writeCommaSeparatedList(node.getVariables()); semicolon(); endNode(node); return null; }
@Override public Void visitFieldDeclaration(final FieldDeclaration node, final Void ignored) { startNode(node); writeAnnotations(node.getAnnotations(), true); writeModifiers(node.getModifiers()); final FieldDefinition field = node.getUserData(Keys.FIELD_DEFINITION); if (field != null && field.isSynthetic()) { space(lastWritten != LastWritten.Whitespace); formatter.writeComment(CommentType.MultiLine, " synthetic "); space(); } node.getReturnType().acceptVisitor(this, ignored); space(); writeCommaSeparatedList(node.getVariables()); semicolon(); endNode(node); return null; }