Browse Source

Suppress warning in DefaultDeserializer

pull/869/head
Sam Brannen 9 years ago
parent
commit
21cfa0e4ba
  1. 4
      spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java

4
spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java

@ -58,10 +58,12 @@ public class DefaultDeserializer implements Deserializer<Object> {
/** /**
* Reads the input stream and deserializes into an object. * Read from the supplied {@code InputStream} and deserialize the contents
* into an object.
* @see ObjectInputStream#readObject() * @see ObjectInputStream#readObject()
*/ */
@Override @Override
@SuppressWarnings("resource")
public Object deserialize(InputStream inputStream) throws IOException { public Object deserialize(InputStream inputStream) throws IOException {
ObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream, this.classLoader); ObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream, this.classLoader);
try { try {

Loading…
Cancel
Save