This commit is contained in:
Gary Gregory 2024-06-23 16:02:42 -04:00
parent e713a38def
commit 6de20f9ddc
1 changed files with 8 additions and 1 deletions

View File

@ -94,6 +94,13 @@ public class MultiValueMap<K, V> extends AbstractMapDecorator<K, Object> impleme
}
}
/**
* 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 is) throws IOException, ClassNotFoundException {
is.defaultReadObject();
// ensure that the de-serialized class is a Collection, COLLECTIONS-580
@ -475,7 +482,7 @@ public class MultiValueMap<K, V> extends AbstractMapDecorator<K, Object> impleme
}
/**
* Read the map in using a custom routine.
* Deserializes the map in using a custom routine.
*
* @param in the input stream
* @throws IOException if an error occurs while reading from the stream