diff options
Diffstat (limited to 'gnu/javax/net/ssl/StaticTrustAnchors.java')
-rw-r--r-- | gnu/javax/net/ssl/StaticTrustAnchors.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/javax/net/ssl/StaticTrustAnchors.java b/gnu/javax/net/ssl/StaticTrustAnchors.java index fcdf3a8b1..480f1c754 100644 --- a/gnu/javax/net/ssl/StaticTrustAnchors.java +++ b/gnu/javax/net/ssl/StaticTrustAnchors.java @@ -1,5 +1,5 @@ /* StaticTrustAnchors.java -- static list of CA certificates. - Copyright (C) 2006, 2015 Free Software Foundation, Inc. + Copyright (C) 2006 Free Software Foundation, Inc. This file is a part of GNU Classpath. @@ -68,7 +68,7 @@ public class StaticTrustAnchors implements ManagerFactoryParameters public StaticTrustAnchors(X509Certificate[] certs) { - this.certs = certs.clone(); + this.certs = (X509Certificate[]) certs.clone(); } // Class method. @@ -94,7 +94,7 @@ public class StaticTrustAnchors implements ManagerFactoryParameters public X509Certificate[] getCertificates() { - return certs.clone(); + return (X509Certificate[]) certs.clone(); } // Constant. @@ -112,7 +112,7 @@ public class StaticTrustAnchors implements ManagerFactoryParameters static { - LinkedList<X509Certificate> certs = new LinkedList<X509Certificate>(); + LinkedList certs = new LinkedList(); CertificateFactory factory = null; try @@ -1935,6 +1935,6 @@ public class StaticTrustAnchors implements ManagerFactoryParameters "mmFei74pnykkiFY5LKjSq5YDWtRIn7lAhAuYaPsBQ9Yb4gmxlxw=\n" + "-----END CERTIFICATE-----\n"); - CA_CERTS = new StaticTrustAnchors(certs.toArray(new X509Certificate[certs.size()])); + CA_CERTS = new StaticTrustAnchors((X509Certificate[]) certs.toArray(new X509Certificate[0])); } } |