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 2020/11/20 23:54:55 UTC

[commons-csv] branch master updated: Move init in test.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-csv.git


The following commit(s) were added to refs/heads/master by this push:
     new 6394147  Move init in test.
6394147 is described below

commit 63941478d2068b8a16cac321a7638717027d7e5f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Nov 20 18:54:51 2020 -0500

    Move init in test.
---
 src/test/java/org/apache/commons/csv/CSVParserTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/test/java/org/apache/commons/csv/CSVParserTest.java b/src/test/java/org/apache/commons/csv/CSVParserTest.java
index 77bbf3e..0df4f0e 100644
--- a/src/test/java/org/apache/commons/csv/CSVParserTest.java
+++ b/src/test/java/org/apache/commons/csv/CSVParserTest.java
@@ -791,9 +791,9 @@ public class CSVParserTest {
 
         // Iterator hasNext() shouldn't break sequence
         try (CSVParser parser = CSVFormat.DEFAULT.parse(new StringReader(fiveRows))) {
-            int recordNumber = 0;
+            
             final Iterator<CSVRecord> iter = parser.iterator();
-            recordNumber = 0;
+            int recordNumber = 0;
             while (iter.hasNext()) {
                 final CSVRecord record = iter.next();
                 recordNumber++;