This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-net.git


The following commit(s) were added to refs/heads/master by this push:
     new a04b188  Use non-deprecated method
a04b188 is described below

commit a04b188138629b85228186d3672f4a8363245d1a
Author: Sebb <s...@apache.org>
AuthorDate: Mon Jun 22 23:43:38 2020 +0100

    Use non-deprecated method
---
 src/main/java/org/apache/commons/net/daytime/DaytimeUDPClient.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/net/daytime/DaytimeUDPClient.java 
b/src/main/java/org/apache/commons/net/daytime/DaytimeUDPClient.java
index d221f79..2dc8618 100644
--- a/src/main/java/org/apache/commons/net/daytime/DaytimeUDPClient.java
+++ b/src/main/java/org/apache/commons/net/daytime/DaytimeUDPClient.java
@@ -67,7 +67,7 @@ public final class DaytimeUDPClient extends 
DatagramSocketClient
         _socket_.send(sendPacket);
         _socket_.receive(receivePacket);
 
-        return new String(receivePacket.getData(), 0, 
receivePacket.getLength(), getCharsetName()); // Java 1.6 can use getCharset()
+        return new String(receivePacket.getData(), 0, 
receivePacket.getLength(), getCharset()); // Java 1.6 can use getCharset()
     }
 
     /** Same as <code>getTime(host, DaytimeUDPClient.DEFAULT_PORT);</code>

Reply via email to