Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 942 Bytes

File metadata and controls

39 lines (28 loc) · 942 Bytes

Repilot Patch

    public static final CSVFormat EXCEL =
            DEFAULT
            .withAllowMissingColumnNames(true)
            .withIgnoreEmptyLines(false);

Developer Patch

    public static final CSVFormat EXCEL = DEFAULT.withIgnoreEmptyLines(false).withAllowMissingColumnNames(true);

Context

--- bug/Csv-12/src/main/java/org/apache/commons/csv/CSVFormat.java

+++ fix/Csv-12/src/main/java/org/apache/commons/csv/CSVFormat.java

@@ -216,7 +216,10 @@

      * Note: this is currently like {@link #RFC4180} plus {@link #withAllowMissingColumnNames(boolean) withAllowMissingColumnNames(true)}.
      * </p>
      */
-    public static final CSVFormat EXCEL = DEFAULT.withIgnoreEmptyLines(false);
+    public static final CSVFormat EXCEL =
+            DEFAULT
+            .withAllowMissingColumnNames(true)
+            .withIgnoreEmptyLines(false);
 
     /**
      * Tab-delimited format.

Note