Increase code coverage in spring-core serializer package
Closes gh-30744
This commit is contained in:
@@ -67,8 +67,7 @@ public class DefaultDeserializer implements Deserializer<Object> {
|
||||
@Override
|
||||
@SuppressWarnings("resource")
|
||||
public Object deserialize(InputStream inputStream) throws IOException {
|
||||
ObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream, this.classLoader);
|
||||
try {
|
||||
try (ConfigurableObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream, this.classLoader)){
|
||||
return objectInputStream.readObject();
|
||||
}
|
||||
catch (ClassNotFoundException ex) {
|
||||
|
||||
Reference in New Issue
Block a user