Skip to content

Commit a503099

Browse files
authored
Merge pull request apache#598 from makarandhinge/CSV-268-withFirstRecordAsHeader-javadoc-clean
[Javadoc] Clarify behavior of deprecated CSVFormat#withFirstRecordAsHeader()
2 parents 15602b6 + 7ef443c commit a503099

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,6 +2788,9 @@ public CSVFormat withEscape(final Character escape) {
27882788
* .get();
27892789
* </pre>
27902790
*
2791+
* <p>Any previously set headers are reset to empty.
2792+
* The resulting format will have {@code skipHeaderRecord = true}.</p>
2793+
*
27912794
* @return A new CSVFormat that is equal to this but using the first record as header.
27922795
* @see Builder#setSkipHeaderRecord(boolean)
27932796
* @see Builder#setHeader(String...)

0 commit comments

Comments
 (0)