Skip to content

Commit 473727b

Browse files
committed
Rename ivar headerMapping -> headerMap.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383920 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7c86611 commit 473727b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
public class CSVParser implements Iterable<CSVRecord> {
7070

7171
private final Lexer lexer;
72-
private final Map<String, Integer> headerMapping;
72+
private final Map<String, Integer> headerMap;
7373

7474
// the following objects are shared to reduce garbage
7575

@@ -104,7 +104,7 @@ public CSVParser(Reader input, CSVFormat format) throws IOException {
104104

105105
this.lexer = new CSVLexer(format, new ExtendedBufferedReader(input));
106106

107-
this.headerMapping = initializeHeader(format);
107+
this.headerMap = initializeHeader(format);
108108
}
109109

110110
/**
@@ -148,7 +148,7 @@ public List<CSVRecord> getRecords() throws IOException {
148148
* on parse error or input read-failure
149149
*/
150150
CSVRecord getRecord() throws IOException {
151-
CSVRecord result = new CSVRecord(null, headerMapping, null);
151+
CSVRecord result = new CSVRecord(null, headerMap, null);
152152
record.clear();
153153
StringBuilder sb = null;
154154
do {
@@ -184,7 +184,7 @@ CSVRecord getRecord() throws IOException {
184184

185185
if (!record.isEmpty()) {
186186
final String comment = sb == null ? null : sb.toString();
187-
result = new CSVRecord(record.toArray(new String[record.size()]), headerMapping, comment);
187+
result = new CSVRecord(record.toArray(new String[record.size()]), headerMap, comment);
188188
}
189189
return result;
190190
}

0 commit comments

Comments
 (0)