Skip to content

Commit 6d2dc88

Browse files
author
Gary Gregory
committed
Make private classes final.
1 parent e5d2ecd commit 6d2dc88

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/org/apache/commons/io/file/Counters.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public String toString() {
101101
/**
102102
* Counts using a BigInteger number.
103103
*/
104-
private static class BigIntegerCounter implements Counter {
104+
private static final class BigIntegerCounter implements Counter {
105105

106106
private BigInteger value = BigInteger.ZERO;
107107

@@ -157,7 +157,7 @@ public String toString() {
157157
/**
158158
* Counts files, directories, and sizes, as a visit proceeds, using BigInteger numbers.
159159
*/
160-
private static class BigIntegerPathCounters extends AbstractPathCounters {
160+
private final static class BigIntegerPathCounters extends AbstractPathCounters {
161161

162162
/**
163163
* Constructs a new initialized instance.
@@ -211,7 +211,7 @@ public interface Counter {
211211
/**
212212
* Counts using a long number.
213213
*/
214-
private static class LongCounter implements Counter {
214+
private final static class LongCounter implements Counter {
215215

216216
private long value;
217217

@@ -267,7 +267,7 @@ public String toString() {
267267
/**
268268
* Counts files, directories, and sizes, as a visit proceeds, using long numbers.
269269
*/
270-
private static class LongPathCounters extends AbstractPathCounters {
270+
private final static class LongPathCounters extends AbstractPathCounters {
271271

272272
/**
273273
* Constructs a new initialized instance.

0 commit comments

Comments
 (0)