Skip to content

Commit cba57c4

Browse files
committed
Fixtypo
1 parent d9b9565 commit cba57c4

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public synchronized int read( ByteBuffer dst ) throws IOException{
167167
try{
168168
result = engine.unwrap( peerNetData, peerAppData );
169169
} catch ( SSLExceptione ){
170-
log.error("SSLExcpetion during unwrap", e);
170+
log.error("SSLException during unwrap", e);
171171
throwe;
172172
}
173173
switch(result.getStatus()){

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class SSLSocketChannel2 implements ByteChannel, WrappedByteChannel, ISSLC
7171

7272
protectedList<Future<?>> tasks;
7373

74-
/** raw payload incomming */
74+
/** raw payload incoming */
7575
protectedByteBufferinData;
7676
/** encrypted data outgoing */
7777
protectedByteBufferoutCrypt;
@@ -130,7 +130,7 @@ private void consumeFutureUninterruptible( Future<?> f ){
130130
}
131131

132132
/**
133-
* This method will do whatever necessary to process the sslengine handshake.
133+
* This method will do whatever necessary to process the sslEngine handshake.
134134
* Thats why it's called both from the{@link #read(ByteBuffer)} and{@link #write(ByteBuffer)}
135135
**/
136136
privatesynchronizedvoidprocessHandshake() throwsIOException{

‎src/main/java/org/java_websocket/WebSocketServerFactory.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public interface WebSocketServerFactory extends WebSocketFactory{
4444
WebSocketImplcreateWebSocket( WebSocketAdaptera, List<Draft> drafts );
4545

4646
/**
47-
* Allows to wrap the Socketchannel( key.channel() ) to insert a protocol layer( like ssl or proxy authentication) beyond the ws layer.
47+
* Allows to wrap the SocketChannel( key.channel() ) to insert a protocol layer( like ssl or proxy authentication) beyond the ws layer.
4848
*
4949
* @param channel The SocketChannel to wrap
5050
* @param key a SelectionKey of an open SocketChannel.

‎src/main/java/org/java_websocket/client/WebSocketClient.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ public InetSocketAddress getRemoteSocketAddress( WebSocket conn ){
684684
returnnull;
685685
}
686686

687-
// ABTRACT METHODS /////////////////////////////////////////////////////////
687+
// ABSTRACT METHODS /////////////////////////////////////////////////////////
688688

689689
/**
690690
* Called after an opening handshake has been performed and the given websocket is ready to be written on.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class IncompleteHandshakeException extends RuntimeException{
3636
privatestaticfinallongserialVersionUID = 7906596804233893092L;
3737

3838
/**
39-
* attribut which size of handshake would have been preferred
39+
* attribute which size of handshake would have been preferred
4040
*/
4141
privatefinalintpreferredSize;
4242

‎src/main/java/org/java_websocket/exceptions/InvalidDataException.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public class InvalidDataException extends Exception{
3636
privatestaticfinallongserialVersionUID = 3731842424390998726L;
3737

3838
/**
39-
* attribut which closecode will be returned
39+
* attribute which closecode will be returned
4040
*/
4141
privatefinalintclosecode;
4242

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public void append(Framedata nextframe){
159159

160160
@Override
161161
publicStringtoString(){
162-
return"Framedata{optcode:" + getOpcode() + ", fin:" + isFin() + ", rsv1:" + isRSV1() + ", rsv2:" + isRSV2() + ", rsv3:" + isRSV3() + ", payloadlength:[pos:" + unmaskedpayload.position() + ", len:" + unmaskedpayload.remaining() + "], payload:" + ( unmaskedpayload.remaining() > 1000 ? "(too big to display)" : newString( unmaskedpayload.array() ) ) + '}';
162+
return"Framedata{opcode:" + getOpcode() + ", fin:" + isFin() + ", rsv1:" + isRSV1() + ", rsv2:" + isRSV2() + ", rsv3:" + isRSV3() + ", payloadlength:[pos:" + unmaskedpayload.position() + ", len:" + unmaskedpayload.remaining() + "], payload:" + ( unmaskedpayload.remaining() > 1000 ? "(too big to display)" : newString( unmaskedpayload.array() ) ) + '}';
163163
}
164164

165165
/**

‎src/main/java/org/java_websocket/server/WebSocketServer.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,7 @@ private void doBroadcast(Object data, Collection<WebSocket> clients){
977977
* @param draft The draft to use
978978
* @param draftFrames The list of frames per draft to fill
979979
* @param sData the string data, can be null
980-
* @param bData the bytebuffer data, can be null
980+
* @param bData the byte buffer data, can be null
981981
*/
982982
privatevoidfillFrames(Draftdraft, Map<Draft, List<Framedata>> draftFrames, StringsData, ByteBufferbData){
983983
if( !draftFrames.containsKey( draft ) ){
@@ -1036,7 +1036,7 @@ public void run(){
10361036
}
10371037

10381038
/**
1039-
* call ws.decode on the bytebuffer
1039+
* call ws.decode on the byteBuffer
10401040
* @param ws the Websocket
10411041
* @param buf the buffer to decode to
10421042
* @throws InterruptedException thrown by pushBuffer

‎src/main/java/org/java_websocket/util/Base64.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ public void write(int theByte)
938938
if( suspendEncoding ){
939939
this.out.write( theByte );
940940
return;
941-
} // end if: supsended
941+
} // end if: suspended
942942

943943
// Encode?
944944
if( encode ){
@@ -991,7 +991,7 @@ public void write( byte[] theBytes, int off, int len )
991991
if( suspendEncoding ){
992992
this.out.write( theBytes, off, len );
993993
return;
994-
} // end if: supsended
994+
} // end if: suspended
995995

996996
for( inti = 0; i < len; i++ ){
997997
write( theBytes[ off + i ] );

‎src/test/java/org/java_websocket/extensions/AllExtensionTests.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
org.java_websocket.extensions.CompressionExtensionTest.class
3535
})
3636
/**
37-
* Start all tests for extensuins
37+
* Start all tests for extensions
3838
*/
3939
publicclassAllExtensionTests{
4040
}

0 commit comments

Comments
(0)