Just a small contribution. - Increase code coverage of classes in spring core serializer package. Spring Increase code coverage in spring-core serializer package

  • Adjust some methods to use AutoCloseable interface.

Comment From: devdilson

I did the improvements @sbrannen thanks for reviewing it!

Comment From: sbrannen

Adjust some methods to use AutoCloseable interface.

Please note that this change is inappropriate according to the official contract of Deserializer#deserialize(InputStream):

Note: Implementations should not close the given InputStream (or any decorators of that InputStream) but rather leave this up to the caller.

However, there's no need to update this PR: I'll remove that change when merging.

Comment From: sbrannen

This has been merged into main in 4979d8fded09cefb1b77c91abae506ff4f4a58f5 and revised in bfeca4a0bf0f02f06e42413065b5cc651ae94963.

Thanks