Skip to content

Commit

Permalink
Refactor on catch multiple exceptions for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanDeboutGat committed Apr 5, 2021
1 parent 1ec13ac commit 971ca5b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ private SSLConnectionSocketFactory buildSSLConnectionSocketFactory() {
return new SSLConnectionSocketFactory(sslContext, supportedProtocols,
null,
new DefaultHostnameVerifier()); // 优先绕过安全证书
} catch (KeyManagementException e) {
logger.error("ssl connection fail", e);
} catch (NoSuchAlgorithmException e) {
} catch (KeyManagementException | NoSuchAlgorithmException e) {
logger.error("ssl connection fail", e);
}
return SSLConnectionSocketFactory.getSocketFactory();
Expand Down

0 comments on commit 971ca5b

Please sign in to comment.