This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git

commit c1287cad61ff4855139937889aa85f4c44817163
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jun 23 16:06:25 2024 -0400

    Javadoc
---
 .../collections4/multimap/HashSetValuedHashMap.java   | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/collections4/multimap/HashSetValuedHashMap.java
 
b/src/main/java/org/apache/commons/collections4/multimap/HashSetValuedHashMap.java
index c9830c3cb..de891b355 100644
--- 
a/src/main/java/org/apache/commons/collections4/multimap/HashSetValuedHashMap.java
+++ 
b/src/main/java/org/apache/commons/collections4/multimap/HashSetValuedHashMap.java
@@ -117,15 +117,22 @@ public class HashSetValuedHashMap<K, V> extends 
AbstractSetValuedMap<K, V>
         return new HashSet<>(initialSetCapacity);
     }
 
-    private void readObject(final ObjectInputStream ois) throws IOException, 
ClassNotFoundException {
-        ois.defaultReadObject();
+    /**
+     * Deserializes an instance from an ObjectInputStream.
+     *
+     * @param in The source ObjectInputStream.
+     * @throws IOException            Any of the usual Input/Output related 
exceptions.
+     * @throws ClassNotFoundException A class of a serialized object cannot be 
found.
+     */
+    private void readObject(final ObjectInputStream in) throws IOException, 
ClassNotFoundException {
+        in.defaultReadObject();
         setMap(new HashMap<>());
-        doReadObject(ois);
+        doReadObject(in);
     }
 
-    private void writeObject(final ObjectOutputStream oos) throws IOException {
-        oos.defaultWriteObject();
-        doWriteObject(oos);
+    private void writeObject(final ObjectOutputStream out) throws IOException {
+        out.defaultWriteObject();
+        doWriteObject(out);
     }
 
 }

Reply via email to