In the DefaultDeserializer class, there was a problem with not properly releasing resources used by the ObjectInputStream.
I've improved it by using try-with-resources to ensure that resources are properly released, thereby preventing memory leaks.
Comment From: snicoll
@ch4570 thanks for the PR but the Javadoc of Deserializer#deserialize
states:
Note: Implementations should not close the given InputStream (or any decorators of that InputStream) but rather leave this up to the caller.