diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2015-08-13 03:00:30 +0100 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2016-02-16 02:00:13 +0000 |
commit | 515871961ff934601b190bb32bf4fc42ddcf7e4d (patch) | |
tree | bd01845fb966a540e550d0755ac8bb4ca90621c5 /gnu/javax/net/ssl/StaticTrustAnchors.java | |
parent | 5f98982eadb3c595d86d4af2825902a3ccf8f581 (diff) | |
download | classpath-515871961ff934601b190bb32bf4fc42ddcf7e4d.tar.gz |
Revert undocumented changes accidentally included with last commit.
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])); } } |