You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2012/09/12 14:59:30 UTC
svn commit: r1383920 -
/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Author: ggregory
Date: Wed Sep 12 12:59:30 2012
New Revision: 1383920
URL: http://svn.apache.org/viewvc?rev=1383920&view=rev
Log:
Rename ivar headerMapping -> headerMap.
Modified:
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Modified: commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
URL: http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java?rev=1383920&r1=1383919&r2=1383920&view=diff
==============================================================================
--- commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java (original)
+++ commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java Wed Sep 12 12:59:30 2012
@@ -69,7 +69,7 @@ import static org.apache.commons.csv.Tok
public class CSVParser implements Iterable<CSVRecord> {
private final Lexer lexer;
- private final Map<String, Integer> headerMapping;
+ private final Map<String, Integer> headerMap;
// the following objects are shared to reduce garbage
@@ -104,7 +104,7 @@ public class CSVParser implements Iterab
this.lexer = new CSVLexer(format, new ExtendedBufferedReader(input));
- this.headerMapping = initializeHeader(format);
+ this.headerMap = initializeHeader(format);
}
/**
@@ -148,7 +148,7 @@ public class CSVParser implements Iterab
* on parse error or input read-failure
*/
CSVRecord getRecord() throws IOException {
- CSVRecord result = new CSVRecord(null, headerMapping, null);
+ CSVRecord result = new CSVRecord(null, headerMap, null);
record.clear();
StringBuilder sb = null;
do {
@@ -184,7 +184,7 @@ public class CSVParser implements Iterab
if (!record.isEmpty()) {
final String comment = sb == null ? null : sb.toString();
- result = new CSVRecord(record.toArray(new String[record.size()]), headerMapping, comment);
+ result = new CSVRecord(record.toArray(new String[record.size()]), headerMap, comment);
}
return result;
}