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 c8527b3  Fixtypo in the PerformanceTest (#55)
c8527b3 is described below

commit c8527b3d532dffa4aa0137c9e6d36bfebe0d9d95
Author: Chen <50514813+dot...@users.noreply.github.com>
AuthorDate: Tue Jan 21 07:03:22 2020 +0800

    Fixtypo in the PerformanceTest (#55)
---
 src/test/java/org/apache/commons/csv/perf/PerformanceTest.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java 
b/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java
index d35f598..3761325 100644
--- a/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java
+++ b/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java
@@ -38,7 +38,7 @@ import org.junit.jupiter.api.Test;
 /**
  * Tests performance.
  *
- * To run this test, use: mvn test -Dtest=PeformanceTest
+ * To run this test, use: mvn test -Dtest=PerformanceTest
  */
 @SuppressWarnings("boxing") // test code
 public class PerformanceTest {
@@ -112,12 +112,11 @@ public class PerformanceTest {
     @Test
     public void testReadBigFile() throws Exception {
         long bestTime = Long.MAX_VALUE;
+        long count;
         for (int i = 0; i < this.max; i++) {
             final long startMillis;
-            long count;
             try (final BufferedReader in = this.createBufferedReader()) {
                 startMillis = System.currentTimeMillis();
-                count = 0;
                 count = this.readAll(in);
             }
             final long totalMillis = System.currentTimeMillis() - startMillis;

Reply via email to