Skip to content

Commit 4b3f9ad

Browse files
committed
Nest if
For codacy
1 parent b26515b commit 4b3f9ad

File tree

6 files changed

+486
-13
lines changed

6 files changed

+486
-13
lines changed

keystore.jks

2.2 KB
Binary file not shown.

src/main/example/simplelogger.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
org.slf4j.simpleLogger.logFile=System.out
2-
org.slf4j.simpleLogger.defaultLogLevel=trace
2+
org.slf4j.simpleLogger.defaultLogLevel=error
33
org.slf4j.simpleLogger.showDateTime=true
44
org.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss.SSS
55
org.slf4j.simpleLogger.showThreadName=false

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public synchronized int read( ByteBuffer dst ) throws IOException {
178178
return ByteBufferUtils.transferByteBuffer( peerAppData, dst );
179179
case BUFFER_OVERFLOW:
180180
peerAppData = enlargeApplicationBuffer( peerAppData );
181-
break;
181+
return read(dst);
182182
case CLOSED:
183183
closeConnection();
184184
dst.clear();
@@ -323,8 +323,6 @@ private boolean doHandshake() throws IOException {
323323
}
324324
break;
325325
case NEED_WRAP:
326-
327-
328326
myNetData.clear();
329327
try {
330328
result = engine.wrap( myAppData, myNetData );

0 commit comments

Comments
 (0)