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

commit 26f03d3ce62898d6a6f30b56d2466189f2c07bb3
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Dec 10 16:16:45 2024 -0500

    Deprecate constructor Counters.Counters() to be private in 4.0
    
    Add missing Javadoc
---
 src/changes/changes.xml                                |  1 +
 src/main/java/org/apache/commons/io/file/Counters.java | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8283618e8..f1831db74 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -48,6 +48,7 @@ The <action> type attribute can be add,update,fix,remove.
   <body>
     <release version="2.19.0" date="YYYY-MM-DD" description="Version 2.18.1: 
Java 8 is required.">
       <!-- FIX -->
+      <action dev="ggregory" type="fix"                due-to="Gary 
Gregory">Deprecate constructor Counters.Counters() to be private in 
4.0.</action>
       <!-- ADD -->
       <action dev="ggregory" type="add" issue="IO-860" due-to="Nico Strecker, 
Gary Gregory">Add ThrottledInputStream.Builder.setMaxBytes(long, 
ChronoUnit).</action>
       <action dev="ggregory" type="add"                due-to="Gary 
Gregory">Add IOIterable.</action>
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 6654c8308..1bf4f315c 100644
--- a/src/main/java/org/apache/commons/io/file/Counters.java
+++ b/src/main/java/org/apache/commons/io/file/Counters.java
@@ -451,4 +451,14 @@ public class Counters {
     public static PathCounters noopPathCounters() {
         return NoopPathCounters.INSTANCE;
     }
+
+    /**
+     * Construct a new instance.
+     *
+     * @deprecated Will be private in 4.0
+     */
+    @Deprecated
+    public Counters() {
+        // empty
+    }
 }

Reply via email to