Skip to content

Commit 8a5efde

Browse files
author
Gary Gregory
committed
Better method name.
1 parent 734e7a9 commit 8a5efde

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public CSVParser(final Reader reader, final CSVFormat format, final long charact
356356
this.format = format;
357357
this.lexer = new Lexer(format, new ExtendedBufferedReader(reader));
358358
this.csvRecordIterator = new CSVRecordIterator();
359-
this.headerMap = this.initializeHeader();
359+
this.headerMap = this.createHeaderMap();
360360
this.characterOffset = characterOffset;
361361
this.recordNumber = recordNumber - 1;
362362
}
@@ -455,12 +455,12 @@ public List<CSVRecord> getRecords() throws IOException {
455455
}
456456

457457
/**
458-
* Initializes the name to index mapping if the format defines a header.
458+
* Creates the name to index mapping if the format defines a header.
459459
*
460460
* @return null if the format has no header.
461461
* @throws IOException if there is a problem reading the header or skipping the first record
462462
*/
463-
private Map<String, Integer> initializeHeader() throws IOException {
463+
private Map<String, Integer> createHeaderMap() throws IOException {
464464
Map<String, Integer> hdrMap = null;
465465
final String[] formatHeader = this.format.getHeader();
466466
if (formatHeader != null) {

0 commit comments

Comments
 (0)