8221270: Duplicated synchronized keywords in SSLSocketImpl
Reviewed-by: mullan
This commit is contained in:
parent
ed5a2f1e06
commit
901e797c0c
@ -342,15 +342,8 @@ public final class SSLSocketImpl
|
||||
|
||||
@Override
|
||||
public synchronized SSLSession getHandshakeSession() {
|
||||
if (conContext.handshakeContext != null) {
|
||||
synchronized (this) {
|
||||
if (conContext.handshakeContext != null) {
|
||||
return conContext.handshakeContext.handshakeSession;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
return conContext.handshakeContext == null ?
|
||||
null : conContext.handshakeContext.handshakeSession;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user