This commit is contained in:
Gary Gregory 2024-06-23 15:57:27 -04:00
parent 9da464a2a7
commit e8911d7365
1 changed files with 7 additions and 0 deletions

View File

@ -381,6 +381,13 @@ public class DualTreeBidiMap<K, V> extends AbstractDualBidiMap<K, V>
return hm.lastKey();
}
/**
* 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();
normalMap = new TreeMap<>(comparator);