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 39c1e38827a1cb77f5eefde9e4a5546f6e2113a0 Author: Gary Gregory <[email protected]> AuthorDate: Thu Dec 4 07:03:17 2025 -0500 Deprecate DatagramSocketClient.getDefaultTimeout() --- src/changes/changes.xml | 2 +- src/main/java/org/apache/commons/net/DatagramSocketClient.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 67382414..ad6312ee 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -67,7 +67,7 @@ The <action> type attribute can be add,update,fix,remove. <action type="fix" dev="ggregory" due-to="Jakub Kupczyk">Migrate tests to JUnit5 #358.</action> <action type="fix" dev="ggregory" due-to="Jakub Kupczyk, Gary Gregory">Migrate tests to JUnit5 - final #359.</action> <!-- ADD --> - <action type="add" dev="ggregory" due-to="Gary Gregory">Add DatagramSocketClient.getDefaultTimeoutDuration().</action> + <action type="add" dev="ggregory" due-to="Gary Gregory">Add DatagramSocketClient.getDefaultTimeoutDuration() and deprecate getDefaultTimeout().</action> <!-- UPDATE --> <action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 85 to 93 #371, #388, #389.</action> <action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-lang3 from 3.18.0 to 3.19.0.</action> diff --git a/src/main/java/org/apache/commons/net/DatagramSocketClient.java b/src/main/java/org/apache/commons/net/DatagramSocketClient.java index c8a1d410..3ae30717 100644 --- a/src/main/java/org/apache/commons/net/DatagramSocketClient.java +++ b/src/main/java/org/apache/commons/net/DatagramSocketClient.java @@ -120,7 +120,9 @@ public abstract class DatagramSocketClient implements AutoCloseable { * Gets the default timeout in milliseconds that is used when opening a socket. * * @return The default timeout in milliseconds that is used when opening a socket. + * @deprecated Use {@link #getDefaultTimeoutDuration()}. */ + @Deprecated public int getDefaultTimeout() { return _timeout_; }
