Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/java.base/share/classes/sun/security/ssl/Alert.java
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ SSLException createSSLException(String reason, Throwable cause) {
}

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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ static List<SNIServerName> getRequestedServerNames(SSLEngine engine) {

private static List<SNIServerName> getRequestedServerNames(
SSLSession session) {
if (session != null && (session instanceof ExtendedSSLSession)) {
if (session instanceof ExtendedSSLSession) {
return ((ExtendedSSLSession)session).getRequestedServerNames();
}

Expand Down