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;