Skip to content

Commit

Permalink
openrewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
Siedlerchr committed Sep 4, 2023
1 parent 5370b7e commit f6c9bfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jabref/logic/net/ssl/TrustStoreManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ private static X509TrustManager findDefaultTrustManager(KeyStore keyStore)
tmf.init(keyStore); // If keyStore is null, tmf will be initialized with the default trust store

for (TrustManager tm : tmf.getTrustManagers()) {
if (tm instanceof X509TrustManager) {
return (X509TrustManager) tm;
if (tm instanceof X509TrustManager manager) {
return manager;
}
}
return null;
Expand Down

0 comments on commit f6c9bfa

Please sign in to comment.