8257448: Clean duplicated non-null check in the SunJSSE provider implementation
Reviewed-by: mullan
This commit is contained in:
parent
41dbc139ab
commit
ae5b5268f3
@ -123,7 +123,7 @@ enum Alert {
|
||||
}
|
||||
|
||||
SSLException ssle;
|
||||
if ((cause != null) && (cause instanceof IOException)) {
|
||||
if (cause instanceof IOException) {
|
||||
ssle = new SSLException(reason);
|
||||
} else if ((this == UNEXPECTED_MESSAGE)) {
|
||||
ssle = new SSLProtocolException(reason);
|
||||
|
@ -370,7 +370,7 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
|
||||
|
||||
private static List<SNIServerName> getRequestedServerNames(
|
||||
SSLSession session) {
|
||||
if (session != null && (session instanceof ExtendedSSLSession)) {
|
||||
if (session instanceof ExtendedSSLSession) {
|
||||
return ((ExtendedSSLSession)session).getRequestedServerNames();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user