From 6cd64781a7cda192bc2b0a555974037fd16cc2c5 Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Wed, 11 Jul 2012 14:54:32 -0400 Subject: Misc Fixes Remaining part of the code. --- base/util/src/netscape/security/x509/CertificateX509Key.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'base/util/src/netscape/security/x509/CertificateX509Key.java') diff --git a/base/util/src/netscape/security/x509/CertificateX509Key.java b/base/util/src/netscape/security/x509/CertificateX509Key.java index a77a1e7dd..0b6f250d9 100644 --- a/base/util/src/netscape/security/x509/CertificateX509Key.java +++ b/base/util/src/netscape/security/x509/CertificateX509Key.java @@ -108,13 +108,11 @@ public class CertificateX509Key implements CertAttrSet, Serializable { key = X509Key.parse(val); } - private synchronized void writeObject(ObjectOutputStream stream) - throws IOException { + private void writeObject(ObjectOutputStream stream) throws IOException { encode(stream); } - private synchronized void readObject(ObjectInputStream stream) - throws IOException { + private void readObject(ObjectInputStream stream) throws IOException { decode(stream); } @@ -142,7 +140,7 @@ public class CertificateX509Key implements CertAttrSet, Serializable { this.key = (X509Key) obj; } else { throw new IOException("Attribute name not recognized by " + - "CertAttrSet: CertificateX509Key."); + "CertAttrSet: CertificateX509Key."); } } @@ -154,7 +152,7 @@ public class CertificateX509Key implements CertAttrSet, Serializable { return (key); } else { throw new IOException("Attribute name not recognized by " + - "CertAttrSet: CertificateX509Key."); + "CertAttrSet: CertificateX509Key."); } } @@ -166,7 +164,7 @@ public class CertificateX509Key implements CertAttrSet, Serializable { key = null; } else { throw new IOException("Attribute name not recognized by " + - "CertAttrSet: CertificateX509Key."); + "CertAttrSet: CertificateX509Key."); } } -- cgit