Skip to content

Commit b9f47eb

Browse files
committed
Fixed some javadoc errors
1 parent 2c72264 commit b9f47eb

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

src/main/java/org/java_websocket/AbstractWebSocket.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public int getConnectionLostTimeout() {
4242

4343
/**
4444
* Setter for the interval checking for lost connections
45-
* A value >= 0 results in the check to be deactivated
45+
* A value lower or equal 0 results in the check to be deactivated
4646
*
4747
* @param connectionLostTimeout the interval in seconds
4848
*/

src/main/java/org/java_websocket/SSLSocketChannel.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818

1919
/**
2020
* A class that represents an SSL/TLS peer, and can be extended to create a client or a server.
21-
* <p/>
21+
*
2222
* It makes use of the JSSE framework, and specifically the {@link SSLEngine} logic, which
2323
* is described by Oracle as "an advanced API, not appropriate for casual use", since
2424
* it requires the user to implement much of the communication establishment procedure himself.
2525
* More information about it can be found here: http://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html#SSLEngine
26-
* <p/>
26+
*
2727
* {@link SSLSocketChannel} implements the handshake protocol, required to establish a connection between two peers,
2828
* which is common for both client and server and provides the abstract {@link SSLSocketChannel#read(ByteBuffer)} and
2929
* {@link SSLSocketChannel#write(ByteBuffer)} (String)} methods, that need to be implemented by the specific SSL/TLS peer

src/main/java/org/java_websocket/framing/CloseFrame.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,11 @@ public CloseFrame() {
133133
setCode(CloseFrame.NORMAL);
134134
}
135135

136-
public void setCode(int code) {
136+
/**
137+
* Set the close code for this close frame
138+
* @param code the close code
139+
*/
140+
public void setCode(int code) {
137141
this.code = code;
138142
// CloseFrame.TLS_ERROR is not allowed to be transfered over the wire
139143
if (code == CloseFrame.TLS_ERROR) {
@@ -143,6 +147,10 @@ public void setCode(int code) {
143147
updatePayload();
144148
}
145149

150+
/**
151+
* Set the close reason for this close frame
152+
* @param reason the reason code
153+
*/
146154
public void setReason(String reason) {
147155
if (reason == null) {
148156
reason = "";

src/main/java/org/java_websocket/framing/ControlFrame.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public abstract class ControlFrame extends FramedataImpl1 {
1010

1111
/**
1212
* Class to represent a control frame
13+
* @param opcode the opcode to use
1314
*/
1415
public ControlFrame( Opcode opcode ) {
1516
super( opcode );

src/main/java/org/java_websocket/framing/DataFrame.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public abstract class DataFrame extends FramedataImpl1 {
99

1010
/**
1111
* Class to represent a data frame
12+
* @param opcode the opcode to use
1213
*/
1314
public DataFrame(Opcode opcode) {
1415
super(opcode);

src/main/java/org/java_websocket/framing/FramedataImpl1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public abstract class FramedataImpl1 implements Framedata {
4646
/**
4747
* Check if the frame is valid due to specification
4848
*
49-
* @throws InvalidDataException
49+
* @throws InvalidDataException thrown if the frame is not a valid frame
5050
*/
5151
public abstract void isValid() throws InvalidDataException;
5252

0 commit comments

Comments
 (0)