summaryrefslogtreecommitdiffstats
path: root/base/util/src/netscape/security/x509/X509Key.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/util/src/netscape/security/x509/X509Key.java')
-rw-r--r--base/util/src/netscape/security/x509/X509Key.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/base/util/src/netscape/security/x509/X509Key.java b/base/util/src/netscape/security/x509/X509Key.java
index 5c8ac3a88..7af1036ea 100644
--- a/base/util/src/netscape/security/x509/X509Key.java
+++ b/base/util/src/netscape/security/x509/X509Key.java
@@ -354,9 +354,7 @@ public class X509Key implements PublicKey {
* Serialization write ... X.509 keys serialize as
* themselves, and they're parsed when they get read back.
*/
- private synchronized void
- writeObject(java.io.ObjectOutputStream stream)
- throws IOException {
+ private void writeObject(java.io.ObjectOutputStream stream) throws IOException {
stream.write(getEncoded());
}
@@ -364,17 +362,12 @@ public class X509Key implements PublicKey {
* Serialization read ... X.509 keys serialize as
* themselves, and they're parsed when they get read back.
*/
- private synchronized void
- readObject(ObjectInputStream stream)
- throws IOException {
-
+ private void readObject(ObjectInputStream stream) throws IOException {
try {
decode(stream);
-
} catch (InvalidKeyException e) {
e.printStackTrace();
- throw new IOException("deserialized key is invalid: " +
- e.getMessage());
+ throw new IOException("deserialized key is invalid: " + e.getMessage());
}
}