We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da55604 commit 4d2616bCopy full SHA for 4d2616b
1 file changed
src/main/java/org/apache/commons/csv/CSVParser.java
@@ -35,6 +35,7 @@
35
import java.util.Arrays;
36
import java.util.Collections;
37
import java.util.Iterator;
38
+import java.util.LinkedHashMap;
39
import java.util.List;
40
import java.util.Map;
41
import java.util.NoSuchElementException;
@@ -441,7 +442,7 @@ public void close() throws IOException {
441
442
private Map<String, Integer> createEmptyHeaderMap() {
443
return this.format.getIgnoreHeaderCase() ?
444
new TreeMap<>(String.CASE_INSENSITIVE_ORDER) :
- new TreeMap<>();
445
+ new LinkedHashMap<>();
446
}
447
448
/**
0 commit comments