From a192e18471f97acd05d2576ebfb24ba7a7e2db61 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Fri, 25 Aug 2023 09:29:00 -0400 Subject: [PATCH] Remove trailing whitespace --- src/main/java/org/apache/commons/csv/CSVFormat.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVFormat.java b/src/main/java/org/apache/commons/csv/CSVFormat.java index 7ed7fff1..154e5823 100644 --- a/src/main/java/org/apache/commons/csv/CSVFormat.java +++ b/src/main/java/org/apache/commons/csv/CSVFormat.java @@ -521,7 +521,7 @@ public final class CSVFormat implements Serializable { } /** - * 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. *

@@ -529,7 +529,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. *

*

@@ -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: