mirror of
https://github.com/apache/commons-csv.git
synced 2025-02-09 03:25:24 +00:00
[CSV-239] Cannot get headers in column order from CSVRecord.
Undo previous change.
This commit is contained in:
parent
da55604794
commit
4d2616b7a5
@ -35,6 +35,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
import java.util.LinkedHashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.NoSuchElementException;
|
import java.util.NoSuchElementException;
|
||||||
@ -441,7 +442,7 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
|
|||||||
private Map<String, Integer> createEmptyHeaderMap() {
|
private Map<String, Integer> createEmptyHeaderMap() {
|
||||||
return this.format.getIgnoreHeaderCase() ?
|
return this.format.getIgnoreHeaderCase() ?
|
||||||
new TreeMap<>(String.CASE_INSENSITIVE_ORDER) :
|
new TreeMap<>(String.CASE_INSENSITIVE_ORDER) :
|
||||||
new TreeMap<>();
|
new LinkedHashMap<>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user