mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8257448: Clean duplicated non-null check in the SunJSSE provider implementation
Reviewed-by: mullan
This commit is contained in:
parent
41dbc139ab
commit
ae5b5268f3
2 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ enum Alert {
|
||||||
}
|
}
|
||||||
|
|
||||||
SSLException ssle;
|
SSLException ssle;
|
||||||
if ((cause != null) && (cause instanceof IOException)) {
|
if (cause instanceof IOException) {
|
||||||
ssle = new SSLException(reason);
|
ssle = new SSLException(reason);
|
||||||
} else if ((this == UNEXPECTED_MESSAGE)) {
|
} else if ((this == UNEXPECTED_MESSAGE)) {
|
||||||
ssle = new SSLProtocolException(reason);
|
ssle = new SSLProtocolException(reason);
|
||||||
|
|
|
@ -370,7 +370,7 @@ final class X509TrustManagerImpl extends X509ExtendedTrustManager
|
||||||
|
|
||||||
private static List<SNIServerName> getRequestedServerNames(
|
private static List<SNIServerName> getRequestedServerNames(
|
||||||
SSLSession session) {
|
SSLSession session) {
|
||||||
if (session != null && (session instanceof ExtendedSSLSession)) {
|
if (session instanceof ExtendedSSLSession) {
|
||||||
return ((ExtendedSSLSession)session).getRequestedServerNames();
|
return ((ExtendedSSLSession)session).getRequestedServerNames();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue