[CSV-239] Cannot get headers in column order from CSVRecord.

Undo previous change.
This commit is contained in:
Gary Gregory 2019-05-20 20:08:08 -04:00
parent da55604794
commit 4d2616b7a5
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
@ -441,7 +442,7 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
private Map<String, Integer> createEmptyHeaderMap() {
return this.format.getIgnoreHeaderCase() ?
new TreeMap<>(String.CASE_INSENSITIVE_ORDER) :
new TreeMap<>();
new LinkedHashMap<>();
}
/**