FixTypo · java-codehunger/Java-WebSocket@b6435fc · GitHub
Skip to content

Commit b6435fc

Browse files
committed
FixTypo
1 parent 499b26f commit b6435fc

24 files changed

Lines changed: 136 additions & 136 deletions

autobahn reports/clients/index.html

Lines changed: 79 additions & 79 deletions
Large diffs are not rendered by default.

autobahn reports/servers/index.html

Lines changed: 1 addition & 1 deletion

src/main/example/ChatClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void onClose( int code, String reason, boolean remote ) {
146146

147147
@Override
148148
public void onError( Exception ex ) {
149-
ta.append( "Exception occured ...\n" + ex + "\n" );
149+
ta.append( "Exception occurred ...\n" + ex + "\n" );
150150
ta.setCaretPosition( ta.getDocument().getLength() );
151151
ex.printStackTrace();
152152
connect.setEnabled( true );

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* <p>
6262
* Modified by marci4 to allow the usage as a ByteChannel
6363
* <p>
64-
* Permission for usage recieved at May 25, 2017 by Alex Karnezis
64+
* Permission for usage received at May 25, 2017 by Alex Karnezis
6565
*/
6666
public class SSLSocketChannel implements WrappedByteChannel, ByteChannel, ISSLChannel {
6767

@@ -214,7 +214,7 @@ public synchronized int write( ByteBuffer output ) throws IOException {
214214
myNetData = enlargePacketBuffer( myNetData );
215215
break;
216216
case BUFFER_UNDERFLOW:
217-
throw new SSLException( "Buffer underflow occured after a wrap. I don't think we should ever get here." );
217+
throw new SSLException( "Buffer underflow occurred after a wrap. I don't think we should ever get here." );
218218
case CLOSED:
219219
closeConnection();
220220
return 0;
@@ -283,7 +283,7 @@ private boolean doHandshake() throws IOException {
283283
try {
284284
engine.closeInbound();
285285
} catch ( SSLException e ) {
286-
//Ignore, cant do anything against this exception
286+
//Ignore, can't do anything against this exception
287287
}
288288
engine.closeOutbound();
289289
// After closeOutbound the engine will be set to WRAP state, in order to try to send a close message to the client.
@@ -347,7 +347,7 @@ private boolean doHandshake() throws IOException {
347347
myNetData = enlargePacketBuffer( myNetData );
348348
break;
349349
case BUFFER_UNDERFLOW:
350-
throw new SSLException( "Buffer underflow occured after a wrap. I don't think we should ever get here." );
350+
throw new SSLException( "Buffer underflow occurred after a wrap. I don't think we should ever get here." );
351351
case CLOSED:
352352
try {
353353
myNetData.flip();

src/main/java/org/java_websocket/SSLSocketChannel2.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,11 +315,11 @@ public int read(ByteBuffer dst) throws IOException {
315315
inCrypt.flip();
316316
unwrap();
317317

318-
int transfered = transfereTo(inData, dst);
319-
if (transfered == 0 && isBlocking()) {
318+
int transferred = transfereTo(inData, dst);
319+
if (transferred == 0 && isBlocking()) {
320320
continue;
321321
}
322-
return transfered;
322+
return transferred;
323323
}
324324
}
325325
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public interface WebSocket {
5959

6060
/**
6161
* This will close the connection immediately without a proper close handshake.
62-
* The code and the message therefore won't be transfered over the wire also they will be forwarded to onClose/onWebsocketClose.
62+
* The code and the message therefore won't be transferred over the wire also they will be forwarded to onClose/onWebsocketClose.
6363
* @param code the closing code
6464
* @param message the closing message
6565
**/

src/main/java/org/java_websocket/WebSocketImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public class WebSocketImpl implements WebSocket {
152152
private String resourceDescriptor = null;
153153

154154
/**
155-
* Attribute, when the last pong was recieved
155+
* Attribute, when the last pong was received
156156
*/
157157
private long lastPong = System.nanoTime();
158158

@@ -483,7 +483,7 @@ public void close( int code, String message ) {
483483

484484
/**
485485
* This will close the connection immediately without a proper close handshake.
486-
* The code and the message therefore won't be transfered over the wire also they will be forwarded to onClose/onWebsocketClose.
486+
* The code and the message therefore won't be transferred over the wire also they will be forwarded to onClose/onWebsocketClose.
487487
*
488488
* @param code the closing code
489489
* @param message the closing message
@@ -789,9 +789,9 @@ public String getResourceDescriptor() {
789789
}
790790

791791
/**
792-
* Getter for the last pong recieved
792+
* Getter for the last pong received
793793
*
794-
* @return the timestamp for the last recieved pong
794+
* @return the timestamp for the last received pong
795795
*/
796796
long getLastPong() {
797797
return lastPong;

src/main/java/org/java_websocket/WebSocketListener.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public interface WebSocketListener {
117117
* Indicates that a complete WebSocket connection has been established,
118118
* and we are ready to send/receive data.
119119
*
120-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
120+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
121121
* @param d The handshake of the websocket instance
122122
*/
123123
void onWebsocketOpen( WebSocket conn, Handshakedata d );
@@ -126,7 +126,7 @@ public interface WebSocketListener {
126126
* Called after <tt>WebSocket#close</tt> is explicity called, or when the
127127
* other end of the WebSocket connection is closed.
128128
*
129-
* @param ws The <tt>WebSocket</tt> instance this event is occuring on.
129+
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
130130
* @param code The codes can be looked up here: {@link CloseFrame}
131131
* @param reason Additional information string
132132
* @param remote Returns whether or not the closing of the connection was initiated by the remote host.
@@ -135,7 +135,7 @@ public interface WebSocketListener {
135135

136136
/** Called as soon as no further frames are accepted
137137
*
138-
* @param ws The <tt>WebSocket</tt> instance this event is occuring on.
138+
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
139139
* @param code The codes can be looked up here: {@link CloseFrame}
140140
* @param reason Additional information string
141141
* @param remote Returns whether or not the closing of the connection was initiated by the remote host.
@@ -144,7 +144,7 @@ public interface WebSocketListener {
144144

145145
/** send when this peer sends a close handshake
146146
*
147-
* @param ws The <tt>WebSocket</tt> instance this event is occuring on.
147+
* @param ws The <tt>WebSocket</tt> instance this event is occurring on.
148148
* @param code The codes can be looked up here: {@link CloseFrame}
149149
* @param reason Additional information string
150150
*/
@@ -154,7 +154,7 @@ public interface WebSocketListener {
154154
* Called if an exception worth noting occurred.
155155
* If an error causes the connection to fail onClose will be called additionally afterwards.
156156
*
157-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
157+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
158158
* @param ex
159159
* The exception that occurred. <br>
160160
* Might be null if the exception is not related to any specific connection. For example if the server port could not be bound.
@@ -165,7 +165,7 @@ public interface WebSocketListener {
165165
* Called a ping frame has been received.
166166
* This method must send a corresponding pong by itself.
167167
*
168-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
168+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
169169
* @param f The ping frame. Control frames may contain payload.
170170
*/
171171
void onWebsocketPing( WebSocket conn, Framedata f );
@@ -181,28 +181,28 @@ public interface WebSocketListener {
181181
/**
182182
* Called when a pong frame is received.
183183
*
184-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
184+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
185185
* @param f The pong frame. Control frames may contain payload.
186186
**/
187187
void onWebsocketPong( WebSocket conn, Framedata f );
188188

189189
/** This method is used to inform the selector thread that there is data queued to be written to the socket.
190-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
190+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
191191
*/
192192
void onWriteDemand( WebSocket conn );
193193

194194
/**
195195
* @see WebSocket#getLocalSocketAddress()
196196
*
197-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
197+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
198198
* @return Returns the address of the endpoint this socket is bound to.
199199
*/
200200
InetSocketAddress getLocalSocketAddress( WebSocket conn );
201201

202202
/**
203203
* @see WebSocket#getRemoteSocketAddress()
204204
*
205-
* @param conn The <tt>WebSocket</tt> instance this event is occuring on.
205+
* @param conn The <tt>WebSocket</tt> instance this event is occurring on.
206206
* @return Returns the address of the endpoint this socket is connected to, or{@code null} if it is unconnected.
207207
*/
208208
InetSocketAddress getRemoteSocketAddress( WebSocket conn );

src/main/java/org/java_websocket/drafts/Draft.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
import org.java_websocket.util.Charsetfunctions;
5252

5353
/**
54-
* Base class for everything of a websocket specification which is not common such as the way the handshake is read or frames are transfered.
54+
* Base class for everything of a websocket specification which is not common such as the way the handshake is read or frames are transferred.
5555
**/
5656
public abstract class Draft {
5757

src/main/java/org/java_websocket/exceptions/IncompleteHandshakeException.java

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)