提交 b030cc72 编写于 作者: X xuelei

8221270: Duplicated synchronized keywords in SSLSocketImpl

Reviewed-by: mullan
上级 cc7085b9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册