Skip to content

Commit 5812793

Browse files
committed
[CSV-130] CSVFormat#withHeader doesn't work well with #printComment, add withHeaderComments(String...). Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1623987 13f79535-47bb-0310-9956-ffa450edef68
1 parent e650b9d commit 5812793

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/org/apache/commons/csv/CSVFormat.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -880,10 +880,12 @@ public CSVFormat withHeader(final String... header) {
880880
}
881881

882882
/**
883-
* Sets the header comments of the format. The comments will be printed first, before the headers.
883+
* Sets the header comments of the format. The comments will be printed first, before the headers. This setting is
884+
* ignored by the parser.
884885
*
885886
* <pre>
886-
* CSVFormat format = aformat.withHeaderComments("Generated by Apache Commons CSV 1.1.", new Date());</pre>
887+
* CSVFormat format = aformat.withHeaderComments(&quot;Generated by Apache Commons CSV 1.1.&quot;, new Date());
888+
* </pre>
887889
*
888890
* @param header
889891
* the header, {@code null} if disabled, empty if parsed automatically, user specified otherwise.

0 commit comments

Comments
 (0)