commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1397902 - /commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Date Sat, 13 Oct 2012 17:16:41 GMT
Author: ggregory
Date: Sat Oct 13 17:16:41 2012
New Revision: 1397902

URL: http://svn.apache.org/viewvc?rev=1397902&view=rev
Log:
It looks like TWO record objects were created for each record read!

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=1397902&r1=1397901&r2=1397902&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 Sat Oct 13
17:16:41 2012
@@ -162,7 +162,7 @@ public class CSVParser implements Iterab
      *             on parse error or input read-failure
      */
     CSVRecord nextRecord() throws IOException {
-        CSVRecord result = new CSVRecord(null, headerMap, null, recordNumber + 1);
+        CSVRecord result = null;
         record.clear();
         StringBuilder sb = null;
         do {



Mime
View raw message