This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-csv.git
The following commit(s) were added to refs/heads/master by this push: new 8a5efde Better method name. 8a5efde is described below commit 8a5efdeb7e085ec77acff147493216e8fd0bcd02 Author: Gary Gregory <gardgreg...@gmail.com> AuthorDate: Sun May 19 09:25:02 2019 -0400 Better method name. --- src/main/java/org/apache/commons/csv/CSVParser.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index ecb4c6a..9615370 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<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) {