From d9a4b2a9e9884b3b81f68bf81efee9f5dfa0363a Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Tue, 10 Oct 2023 16:34:55 -0400 Subject: [PATCH] Make private static classes final --- src/test/java/org/apache/commons/csv/CSVBenchmark.java | 2 +- src/test/java/org/apache/commons/csv/PerformanceTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/apache/commons/csv/CSVBenchmark.java b/src/test/java/org/apache/commons/csv/CSVBenchmark.java index 64d3f498..86a345d1 100644 --- a/src/test/java/org/apache/commons/csv/CSVBenchmark.java +++ b/src/test/java/org/apache/commons/csv/CSVBenchmark.java @@ -202,7 +202,7 @@ public class CSVBenchmark { return callback.count; } - private static class CountingReaderCallback implements org.skife.csv.ReaderCallback { + private static final class CountingReaderCallback implements org.skife.csv.ReaderCallback { public int count; @Override diff --git a/src/test/java/org/apache/commons/csv/PerformanceTest.java b/src/test/java/org/apache/commons/csv/PerformanceTest.java index c0dff75e..489d7235 100644 --- a/src/test/java/org/apache/commons/csv/PerformanceTest.java +++ b/src/test/java/org/apache/commons/csv/PerformanceTest.java @@ -48,7 +48,7 @@ public class PerformanceTest { } // Container for basic statistics - private static class Stats { + private static final class Stats { final int count; final int fields; Stats(final int c, final int f) {