@@ -521,15 +521,15 @@ public Builder setHeader(final String... header) {
521521 }
522522
523523 /**
524- * Sets the header comments to the given values before the CSV data.
524+ * Sets the header comments to the given values before the CSV data.
525525 * <p>
526526 * This setting is ignored by the parser.
527527 * </p>
528528 * <p>
529529 * Comments are printed first, before headers.
530530 * </p>
531531 * <p>
532- * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of
532+ * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of
533533 * each comment line.
534534 * </p>
535535 * <p>
@@ -553,21 +553,22 @@ public Builder setHeader(final String... header) {
553553 * @param headerComments the headerComments which will be printed by the Printer before the CSV data.
554554 * @return This instance.
555555 */
556+
556557 public Builder setHeaderComments (final Object ... headerComments ) {
557558 this .headerComments = CSVFormat .clone (toStringArray (headerComments ));
558559 return this ;
559560 }
560561
561562 /**
562- * Sets the header comments to the given values before the CSV data.
563+ * Sets the header comments to the given values before the CSV data.
563564 * <p>
564565 * This setting is ignored by the parser.
565566 * </p>
566567 * <p>
567568 * Comments are printed first, before headers.
568569 * </p>
569570 * <p>
570- * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of
571+ * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of
571572 * each comment line.
572573 * </p>
573574 * <p>
@@ -578,7 +579,7 @@ public Builder setHeaderComments(final Object... headerComments) {
578579 * </p>
579580 * <pre>
580581 * builder.setCommentMarker('#')
581- * .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0).toString() );
582+ * .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0));
582583 * </pre>
583584 * <p>
584585 * writes:
0 commit comments