From a192e18471f97acd05d2576ebfb24ba7a7e2db61 Mon Sep 17 00:00:00 2001
From: Gary Gregory
* This setting is ignored by the parser.
*
- * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of + * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of * each comment line. *
*@@ -553,13 +553,14 @@ public final class CSVFormat implements Serializable { * @param headerComments the headerComments which will be printed by the Printer before the CSV data. * @return This instance. */ + public Builder setHeaderComments(final Object... headerComments) { this.headerComments = CSVFormat.clone(toStringArray(headerComments)); return this; } /** - * Sets the header comments to the given values before the CSV data. + * Sets the header comments to the given values before the CSV data. *
* This setting is ignored by the parser. *
@@ -567,7 +568,7 @@ public final class CSVFormat implements Serializable { * Comments are printed first, before headers. * *- * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of + * Use {@link Builder#setCommentMarker(char)} or {@link Builder#setCommentMarker(Character)} to set the comment marker written at the start of * each comment line. *
*@@ -578,7 +579,7 @@ public final class CSVFormat implements Serializable { *
** builder.setCommentMarker('#') - * .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0).toString()); + * .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0)); **
* writes: