From 473727be265240adf6d15a1d7abad2f0f31967fd Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Wed, 12 Sep 2012 12:59:30 +0000 Subject: [PATCH] Rename ivar headerMapping -> headerMap. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383920 13f79535-47bb-0310-9956-ffa450edef68 --- src/main/java/org/apache/commons/csv/CSVParser.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index 7a3fb73a..b114e07f 100644 --- a/src/main/java/org/apache/commons/csv/CSVParser.java +++ b/src/main/java/org/apache/commons/csv/CSVParser.java @@ -69,7 +69,7 @@ import static org.apache.commons.csv.Token.Type.*; public class CSVParser implements Iterable { private final Lexer lexer; - private final Map headerMapping; + private final Map headerMap; // the following objects are shared to reduce garbage @@ -104,7 +104,7 @@ public class CSVParser implements Iterable { this.lexer = new CSVLexer(format, new ExtendedBufferedReader(input)); - this.headerMapping = initializeHeader(format); + this.headerMap = initializeHeader(format); } /** @@ -148,7 +148,7 @@ public class CSVParser implements Iterable { * 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 Iterable { 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; }