davsclaus commented on code in PR #17091:
URL: https://github.com/apache/camel/pull/17091#discussion_r1948134470


##########
components/camel-csv/src/main/java/org/apache/camel/dataformat/csv/CsvMarshaller.java:
##########
@@ -53,15 +53,15 @@ protected CsvMarshaller(CSVFormat format) {
     public static CsvMarshaller create(CSVFormat format, CsvDataFormat 
dataFormat) {
         org.apache.camel.util.ObjectHelper.notNull(format, "CSV format");
         org.apache.camel.util.ObjectHelper.notNull(dataFormat, "CSV data 
format");
+        // Get header columns before potential clearing
+        String[] headers = format.getHeader();

Review Comment:
   The old code uses dataFormat.getHeader() and you removed this code why?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to