diff options
Diffstat (limited to 'src/java.base/share/classes/java/security/CodeSource.java')
| -rw-r--r-- | src/java.base/share/classes/java/security/CodeSource.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/security/CodeSource.java b/src/java.base/share/classes/java/security/CodeSource.java index 40bb7a71b71..16199394f1c 100644 --- a/src/java.base/share/classes/java/security/CodeSource.java +++ b/src/java.base/share/classes/java/security/CodeSource.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -522,6 +522,9 @@ public class CodeSource implements java.io.Serializable { * followed by the certificate encoding itself which is written out as an * array of bytes. Finally, if any code signers are present then the array * of code signers is serialized and written out too. + * + * @param oos the {@code ObjectOutputStream} to which data is written + * @throws IOException if an I/O error occurs */ @java.io.Serial private void writeObject(java.io.ObjectOutputStream oos) @@ -557,6 +560,10 @@ public class CodeSource implements java.io.Serializable { /** * Restores this object from a stream (i.e., deserializes it). + * + * @param ois the {@code ObjectInputStream} from which data is read + * @throws IOException if an I/O error occurs + * @throws ClassNotFoundException if a serialized class cannot be loaded */ @java.io.Serial private void readObject(java.io.ObjectInputStream ois) |
