Author: ggregory
Date: Thu Jan 16 19:05:43 2014
New Revision: 1558888

URL: http://svn.apache.org/r1558888
Log:
The local variable record is hiding a field from type CSVParser.

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=1558888&r1=1558887&r2=1558888&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 
Thu Jan 16 19:05:43 2014
@@ -330,9 +330,9 @@ public final class CSVParser implements 
             String[] header = null;
             if (formatHeader.length == 0) {
                 // read the header from the first line of the file
-                final CSVRecord record = this.nextRecord();
-                if (record != null) {
-                    header = record.values();
+                final CSVRecord nextRecord = this.nextRecord();
+                if (nextRecord != null) {
+                    header = nextRecord.values();
                 }
             } else {
                 if (this.format.getSkipHeaderRecord()) {


Reply via email to