提交 b030cc72 编写于 作者: X xuelei

8221270: Duplicated synchronized keywords in SSLSocketImpl

Reviewed-by: mullan
上级 cc7085b9
...@@ -342,15 +342,8 @@ public final class SSLSocketImpl ...@@ -342,15 +342,8 @@ public final class SSLSocketImpl
@Override @Override
public synchronized SSLSession getHandshakeSession() { public synchronized SSLSession getHandshakeSession() {
if (conContext.handshakeContext != null) { return conContext.handshakeContext == null ?
synchronized (this) { null : conContext.handshakeContext.handshakeSession;
if (conContext.handshakeContext != null) {
return conContext.handshakeContext.handshakeSession;
}
}
}
return null;
} }
@Override @Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册