From 766d7c1e968477f0be9b517bb1dd31daa99456b5 Mon Sep 17 00:00:00 2001 From: Prashant Tholia <65695939+prashanttholia@users.noreply.github.com> Date: Mon, 18 Jan 2021 20:21:39 +0530 Subject: [PATCH] Update documentation comments for member methods Update documentation comments for methods getRemoteSocketAddress and getLocalSocketAddress in WebSocket.java. --- src/main/java/org/java_websocket/WebSocket.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/java_websocket/WebSocket.java b/src/main/java/org/java_websocket/WebSocket.java index 6c7e9effc..d515f631b 100644 --- a/src/main/java/org/java_websocket/WebSocket.java +++ b/src/main/java/org/java_websocket/WebSocket.java @@ -137,17 +137,18 @@ public interface WebSocket { boolean hasBufferedData(); /** - * Returns the address of the endpoint this socket is connected to, or{@code null} if it is + * Returns the address of the endpoint this socket is connected to, or {@code null} if it is * unconnected. * - * @return never returns null + * @return the remote socket address or null, if this socket is unconnected */ InetSocketAddress getRemoteSocketAddress(); /** - * Returns the address of the endpoint this socket is bound to. + * Returns the address of the endpoint this socket is bound to, or {@code null} if it is not + * bound. * - * @return never returns null + * @return the local socket address or null, if this socket is not bound */ InetSocketAddress getLocalSocketAddress();