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-io.git


The following commit(s) were added to refs/heads/master by this push:
     new 6d2dc88  Make private classes final.
6d2dc88 is described below

commit 6d2dc886bf15db6851659d19ec067997acf2fdb2
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 9 17:03:41 2020 -0400

    Make private classes final.
---
 src/main/java/org/apache/commons/io/file/Counters.java | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/io/file/Counters.java 
b/src/main/java/org/apache/commons/io/file/Counters.java
index 2bb8da1..d1ae34f 100644
--- a/src/main/java/org/apache/commons/io/file/Counters.java
+++ b/src/main/java/org/apache/commons/io/file/Counters.java
@@ -101,7 +101,7 @@ public class Counters {
     /**
      * Counts using a BigInteger number.
      */
-    private static class BigIntegerCounter implements Counter {
+    private static final class BigIntegerCounter implements Counter {
 
         private BigInteger value = BigInteger.ZERO;
 
@@ -157,7 +157,7 @@ public class Counters {
     /**
      * Counts files, directories, and sizes, as a visit proceeds, using 
BigInteger numbers.
      */
-    private static class BigIntegerPathCounters extends AbstractPathCounters {
+    private final static class BigIntegerPathCounters extends 
AbstractPathCounters {
 
         /**
          * Constructs a new initialized instance.
@@ -211,7 +211,7 @@ public class Counters {
     /**
      * Counts using a long number.
      */
-    private static class LongCounter implements Counter {
+    private final static class LongCounter implements Counter {
 
         private long value;
 
@@ -267,7 +267,7 @@ public class Counters {
     /**
      * Counts files, directories, and sizes, as a visit proceeds, using long 
numbers.
      */
-    private static class LongPathCounters extends AbstractPathCounters {
+    private final static class LongPathCounters extends AbstractPathCounters {
 
         /**
          * Constructs a new initialized instance.

Reply via email to