[java-opensaml] branch main updated: For consistency use reflection variant of casting.
Brent Putman
putmanb at georgetown.edu
Thu Sep 3 03:45:01 UTC 2020
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch main
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=159c5ecc25d7eaa6c8779394cf088bb5351d4362
The following commit(s) were added to refs/heads/main by this push:
new 159c5ecc2 For consistency use reflection variant of casting.
159c5ecc2 is described below
commit 159c5ecc25d7eaa6c8779394cf088bb5351d4362
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Wed Sep 2 23:44:59 2020 -0400
For consistency use reflection variant of casting.
---
.../security/x509/tls/impl/ThreadLocalX509TrustEngineSupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/opensaml-security-impl/src/main/java/org/opensaml/security/x509/tls/impl/ThreadLocalX509TrustEngineSupport.java b/opensaml-security-impl/src/main/java/org/opensaml/security/x509/tls/impl/ThreadLocalX509TrustEngineSupport.java
index 45620713f..f11699741 100644
--- a/opensaml-security-impl/src/main/java/org/opensaml/security/x509/tls/impl/ThreadLocalX509TrustEngineSupport.java
+++ b/opensaml-security-impl/src/main/java/org/opensaml/security/x509/tls/impl/ThreadLocalX509TrustEngineSupport.java
@@ -68,7 +68,7 @@ public final class ThreadLocalX509TrustEngineSupport {
if (!X509Certificate.class.isInstance(chain[i])) {
throw new SSLPeerUnverifiedException("Certificate chain contained non-X509Certificate");
}
- x509Chain[i] = (X509Certificate) chain[i];
+ x509Chain[i] = X509Certificate.class.cast(chain[i]);
}
try {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list