Remove trailing whitespace

This commit is contained in:
Gary Gregory 2023-08-25 09:29:00 -04:00 committed by GitHub
parent a8500ed54d
commit a192e18471
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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.
* <p>
* This setting is ignored by the parser.
* </p>
@ -529,7 +529,7 @@ public final class CSVFormat implements Serializable {
* Comments are printed first, before headers.
* </p>
* <p>
* 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.
* </p>
* <p>
@ -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.
* <p>
* This setting is ignored by the parser.
* </p>
@ -567,7 +568,7 @@ public final class CSVFormat implements Serializable {
* Comments are printed first, before headers.
* </p>
* <p>
* 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.
* </p>
* <p>
@ -578,7 +579,7 @@ public final class CSVFormat implements Serializable {
* </p>
* <pre>
* builder.setCommentMarker('#')
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0).toString());
* .setHeaderComments("Generated by Apache Commons CSV", Instant.ofEpochMilli(0));
* </pre>
* <p>
* writes: