Author: britter
Date: Tue May  3 18:24:22 2016
New Revision: 1742170

URL: http://svn.apache.org/viewvc?rev=1742170&view=rev
Log:
Delegate to withHeader(String[]) instead of calling the long constructor 
directly

Modified:
    commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java

Modified: 
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java
URL: 
http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java?rev=1742170&r1=1742169&r2=1742170&view=diff
==============================================================================
--- 
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java 
(original)
+++ 
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVFormat.java 
Tue May  3 18:24:22 2016
@@ -1139,9 +1139,7 @@ public final class CSVFormat implements
                 labels[i] = metaData.getColumnLabel(i + 1);
             }
         }
-        return new CSVFormat(delimiter, quoteCharacter, quoteMode, 
commentMarker, escapeCharacter,
-                ignoreSurroundingSpaces, ignoreEmptyLines, recordSeparator, 
nullString, headerComments, labels,
-                skipHeaderRecord, allowMissingColumnNames, ignoreHeaderCase, 
trim, trailingDelimiter);
+        return withHeader(labels);
     }
 
     /**


Reply via email to