Polish contribution

See gh-30744
This commit is contained in:
Sam Brannen
2023-08-13 16:59:12 +02:00
parent 4979d8fded
commit bfeca4a0bf
3 changed files with 62 additions and 47 deletions

View File

@@ -67,7 +67,8 @@ public class DefaultDeserializer implements Deserializer<Object> {
@Override
@SuppressWarnings("resource")
public Object deserialize(InputStream inputStream) throws IOException {
try (ConfigurableObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream, this.classLoader)){
ObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream, this.classLoader);
try {
return objectInputStream.readObject();
}
catch (ClassNotFoundException ex) {