Skip to content

Commit 26f03d3

Browse files
committed
Deprecate constructor Counters.Counters() to be private in 4.0
Add missing Javadoc
1 parent ce894b2 commit 26f03d3

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ The <action> type attribute can be add,update,fix,remove.
4848
<body>
4949
<release version="2.19.0" date="YYYY-MM-DD" description="Version 2.18.1: Java 8 is required.">
5050
<!-- FIX -->
51+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate constructor Counters.Counters() to be private in 4.0.</action>
5152
<!-- ADD -->
5253
<action dev="ggregory" type="add" issue="IO-860" due-to="Nico Strecker, Gary Gregory">Add ThrottledInputStream.Builder.setMaxBytes(long, ChronoUnit).</action>
5354
<action dev="ggregory" type="add" due-to="Gary Gregory">Add IOIterable.</action>

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,4 +451,14 @@ public static Counter noopCounter() {
451451
public static PathCounters noopPathCounters() {
452452
return NoopPathCounters.INSTANCE;
453453
}
454+
455+
/**
456+
* Construct a new instance.
457+
*
458+
* @deprecated Will be private in 4.0
459+
*/
460+
@Deprecated
461+
public Counters() {
462+
// empty
463+
}
454464
}

0 commit comments

Comments
 (0)