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 extends AbstractBitwiseTrie(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); } }