Skip to content

Commit 39c1e38

Browse files
committed
Deprecate DatagramSocketClient.getDefaultTimeout()
1 parent 1612e11 commit 39c1e38

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The <action> type attribute can be add,update,fix,remove.
6767
<action type="fix" dev="ggregory" due-to="Jakub Kupczyk">Migrate tests to JUnit5 #358.</action>
6868
<action type="fix" dev="ggregory" due-to="Jakub Kupczyk, Gary Gregory">Migrate tests to JUnit5 - final #359.</action>
6969
<!-- ADD -->
70-
<action type="add" dev="ggregory" due-to="Gary Gregory">Add DatagramSocketClient.getDefaultTimeoutDuration().</action>
70+
<action type="add" dev="ggregory" due-to="Gary Gregory">Add DatagramSocketClient.getDefaultTimeoutDuration() and deprecate getDefaultTimeout().</action>
7171
<!-- UPDATE -->
7272
<action type="update" dev="ggregory" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 85 to 93 #371, #388, #389.</action>
7373
<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>

src/main/java/org/apache/commons/net/DatagramSocketClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ public String getCharsetName() {
120120
* Gets the default timeout in milliseconds that is used when opening a socket.
121121
*
122122
* @return The default timeout in milliseconds that is used when opening a socket.
123+
* @deprecated Use {@link #getDefaultTimeoutDuration()}.
123124
*/
125+
@Deprecated
124126
public int getDefaultTimeout() {
125127
return _timeout_;
126128
}

0 commit comments

Comments
 (0)