From 21cfa0e4ba3404501a3d75733eb3a55dc4d9a4b2 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 2 Sep 2015 15:25:10 +0200 Subject: [PATCH] Suppress warning in DefaultDeserializer --- .../springframework/core/serializer/DefaultDeserializer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java b/spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java index 9c100b6856..8bbf37fff4 100644 --- a/spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java +++ b/spring-core/src/main/java/org/springframework/core/serializer/DefaultDeserializer.java @@ -58,10 +58,12 @@ public class DefaultDeserializer implements Deserializer { /** - * 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() */ @Override + @SuppressWarnings("resource") public Object deserialize(InputStream inputStream) throws IOException { ObjectInputStream objectInputStream = new ConfigurableObjectInputStream(inputStream, this.classLoader); try {