diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index ecb4c6a1..96153702 100644 --- a/src/main/java/org/apache/commons/csv/CSVParser.java +++ b/src/main/java/org/apache/commons/csv/CSVParser.java @@ -356,7 +356,7 @@ public final class CSVParser implements Iterable, 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, 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 initializeHeader() throws IOException { + private Map createHeaderMap() throws IOException { Map hdrMap = null; final String[] formatHeader = this.format.getHeader(); if (formatHeader != null) {