[ 
https://issues.apache.org/jira/browse/CSV-153?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benedikt Ritter resolved CSV-153.
---------------------------------
       Resolution: Fixed
         Assignee: Benedikt Ritter
    Fix Version/s: 1.3

{code}
$ svn ci -m "CSV-153: CSVPrinter doesn't skip creation of header record if 
skipHeaderRecord is set to true. Thanks to Wren. This also fixes #8 from 
github."
Sending        src/changes/changes.xml
Sending        src/main/java/org/apache/commons/csv/CSVPrinter.java
Sending        src/test/java/org/apache/commons/csv/CSVPrinterTest.java
Transmitting file data ...
Committed revision 1706542.
{code}

Thank you!

> CSVPrinter doesn't skip creation of header record if skipHeaderRecord is set 
> to true
> ------------------------------------------------------------------------------------
>
>                 Key: CSV-153
>                 URL: https://issues.apache.org/jira/browse/CSV-153
>             Project: Commons CSV
>          Issue Type: Improvement
>          Components: Printer
>            Reporter: Wren
>            Assignee: Benedikt Ritter
>            Priority: Minor
>             Fix For: 1.3
>
>
> CSVParser uses CSVFormat.getSkipHeaderRecord to initialize index mapping and 
> skip the first record as well (initializeHeader method). It's inconsistent 
> that CSVPrinter doesn't skip creation of header record since the 
> skipHeaderRecord boolean should be applicable for reads/writes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to