Better method name.

This commit is contained in:
Gary Gregory 2019-05-19 09:25:02 -04:00
parent 734e7a910f
commit 8a5efdeb7e
1 changed files with 3 additions and 3 deletions

View File

@ -356,7 +356,7 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
this.format = format;
this.lexer = new Lexer(format, new ExtendedBufferedReader(reader));
this.csvRecordIterator = new CSVRecordIterator();
this.headerMap = this.initializeHeader();
this.headerMap = this.createHeaderMap();
this.characterOffset = characterOffset;
this.recordNumber = recordNumber - 1;
}
@ -455,12 +455,12 @@ public final class CSVParser implements Iterable<CSVRecord>, Closeable {
}
/**
* Initializes the name to index mapping if the format defines a header.
* Creates the name to index mapping if the format defines a header.
*
* @return null if the format has no header.
* @throws IOException if there is a problem reading the header or skipping the first record
*/
private Map<String, Integer> initializeHeader() throws IOException {
private Map<String, Integer> createHeaderMap() throws IOException {
Map<String, Integer> hdrMap = null;
final String[] formatHeader = this.format.getHeader();
if (formatHeader != null) {