From c8527b3d532dffa4aa0137c9e6d36bfebe0d9d95 Mon Sep 17 00:00:00 2001 From: Chen <50514813+dota17@users.noreply.github.com> Date: Tue, 21 Jan 2020 07:03:22 +0800 Subject: [PATCH] Fixtypo in the PerformanceTest (#55) --- .../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 d35f5984..37613253 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;