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 bc793f042d..85af6136f0 100644 --- a/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java +++ b/src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java @@ -2435,12 +2435,12 @@ public Collection values() { * @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 entry : entrySet()) { - stream.writeObject(entry.getKey()); - stream.writeObject(entry.getValue()); + out.writeObject(entry.getKey()); + out.writeObject(entry.getValue()); } }