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 dacfd649222885db956c584c76ac91a9a24dfbf0
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sun Jun 23 16:09:46 2024 -0400

    Javadoc
---
 .../commons/collections4/trie/AbstractPatriciaTrie.java  | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git 
a/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java 
b/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java
index 7506c3eac..c6ae5ab5a 100644
--- 
a/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java
+++ 
b/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java
@@ -2054,16 +2054,20 @@ public abstract class AbstractPatriciaTrie<K, V> 
extends AbstractBitwiseTrie<K,
     }
 
     /**
-     * Reads the content of the stream.
+     * 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.
      */
     @SuppressWarnings("unchecked") // This will fail at runtime if the stream 
is incorrect
-    private void readObject(final ObjectInputStream stream) throws 
IOException, ClassNotFoundException {
-        stream.defaultReadObject();
+    private void readObject(final ObjectInputStream in) throws IOException, 
ClassNotFoundException {
+        in.defaultReadObject();
         root = new TrieEntry<>(null, null, -1);
-        final int size = stream.readInt();
+        final int size = in.readInt();
         for (int i = 0; i < size; i++) {
-            final K k = (K) stream.readObject();
-            final V v = (V) stream.readObject();
+            final K k = (K) in.readObject();
+            final V v = (V) in.readObject();
             put(k, v);
         }
     }

Reply via email to