Match param and Javadoc

This commit is contained in:
Gary Gregory 2024-06-23 17:41:41 -04:00
parent 99f9847f01
commit 8044ecb310
1 changed files with 5 additions and 5 deletions

View File

@ -2224,12 +2224,12 @@ public class TreeBidiMap<K extends Comparable<K>, V extends Comparable<V>>
* @param out the target ObjectOutputStream.
* @throws IOException thrown when an I/O errors occur writing to the target stream.
*/
private void writeObject(final ObjectOutputStream stream) throws IOException {
stream.defaultWriteObject();
stream.writeInt(this.size());
private void writeObject(final ObjectOutputStream out) throws IOException {
out.defaultWriteObject();
out.writeInt(this.size());
for (final Entry<K, V> entry : entrySet()) {
stream.writeObject(entry.getKey());
stream.writeObject(entry.getValue());
out.writeObject(entry.getKey());
out.writeObject(entry.getValue());
}
}