mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8221270: Duplicated synchronized keywords in SSLSocketImpl
Reviewed-by: mullan
This commit is contained in:
parent
ed5a2f1e06
commit
901e797c0c
1 changed files with 2 additions and 9 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue