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

commit 98b8a49c7676f338caa415d9269c3a18d6f41546
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Feb 12 11:08:38 2025 -0500

    Deprecate PrintCommandListeners.PrintCommandListeners()
    
    The constructor will be private in the next major release
---
 src/changes/changes.xml                                        |  1 +
 .../org/apache/commons/net/examples/PrintCommandListeners.java | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 5a703131..0daa2e7d 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -80,6 +80,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Fix SpotBugs 
CT_CONSTRUCTOR_THROW in Base64 by implementing finalize() as a noop to avoid 
finalizer attacks.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Add missing 
Javadoc to ListenerList.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Add missing 
Javadoc to SubnetUtils.</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate 
PrintCommandListeners.PrintCommandListeners().</action>
       <!-- ADD -->
       <action type="add" dev="ggregory" due-to="Gary 
Gregory">org.apache.commons.net.nntp.Article#getChild().</action>
       <action type="add" dev="ggregory" due-to="Gary 
Gregory">org.apache.commons.net.nntp.Article#getNext().</action>
diff --git 
a/src/main/java/org/apache/commons/net/examples/PrintCommandListeners.java 
b/src/main/java/org/apache/commons/net/examples/PrintCommandListeners.java
index ff9d6e58..33ee5d8e 100644
--- a/src/main/java/org/apache/commons/net/examples/PrintCommandListeners.java
+++ b/src/main/java/org/apache/commons/net/examples/PrintCommandListeners.java
@@ -25,6 +25,16 @@ import org.apache.commons.net.io.Util;
  */
 public class PrintCommandListeners {
 
+    /**
+     * Constructs a new instance.
+     *
+     * @deprecated Will be private in the next major release.
+     */
+    @Deprecated
+    public PrintCommandListeners() {
+        // empty
+    }
+
     /**
      * Creates a new PrintCommandListener on system out.
      *

Reply via email to