Skip to content

Commit 32d5656

Browse files
authored
Merge pull request #1115 from prashanttholia/master
WebSocket.java documentation comments update
2 parents 0f0c9a9 + 766d7c1 commit 32d5656

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/org/java_websocket/WebSocket.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,18 @@ public interface WebSocket {
137137
boolean hasBufferedData();
138138

139139
/**
140-
* Returns the address of the endpoint this socket is connected to, or{@code null} if it is
140+
* Returns the address of the endpoint this socket is connected to, or {@code null} if it is
141141
* unconnected.
142142
*
143-
* @return never returns null
143+
* @return the remote socket address or null, if this socket is unconnected
144144
*/
145145
InetSocketAddress getRemoteSocketAddress();
146146

147147
/**
148-
* Returns the address of the endpoint this socket is bound to.
148+
* Returns the address of the endpoint this socket is bound to, or {@code null} if it is not
149+
* bound.
149150
*
150-
* @return never returns null
151+
* @return the local socket address or null, if this socket is not bound
151152
*/
152153
InetSocketAddress getLocalSocketAddress();
153154

0 commit comments

Comments
 (0)