You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/02/12 16:24:46 UTC

(commons-net) 02/04: Deprecate NtpUtils.NtpUtils()

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 fe8c9fbcefe95b5437bd018304a7caf3c463b480
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Wed Feb 12 11:10:45 2025 -0500

    Deprecate NtpUtils.NtpUtils()
---
 src/changes/changes.xml                                | 1 +
 src/main/java/org/apache/commons/net/ntp/NtpUtils.java | 9 +++++++++
 2 files changed, 10 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 0daa2e7d..734835ff 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -81,6 +81,7 @@ The <action> type attribute can be add,update,fix,remove.
       <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>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Deprecate NtpUtils.NtpUtils().</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/ntp/NtpUtils.java b/src/main/java/org/apache/commons/net/ntp/NtpUtils.java
index 2c5bb8bf..4cee0a03 100644
--- a/src/main/java/org/apache/commons/net/ntp/NtpUtils.java
+++ b/src/main/java/org/apache/commons/net/ntp/NtpUtils.java
@@ -102,4 +102,13 @@ public final class NtpUtils {
         return buf.toString();
     }
 
+    /**
+     * Constructs a new instance.
+     *
+     * @deprecated Will be private in the next major release.
+     */
+    @Deprecated
+    public NtpUtils() {
+        // empty
+    }
 }