the out.close() is redundant at this point. the stream will be closed automatically since Java 7 (not 9) new feature try-with-resource

This commit is contained in:
Martin Muller
2018-07-09 12:17:29 +01:00
parent 52801c1e5b
commit f9db61f65d

View File

@@ -43,7 +43,6 @@ public class CMISUtils
{
out.writeObject(source);
out.flush();
out.close();
ObjectInputStream in = new ObjectInputStream(cos.getInputStream());
target = (T) in.readObject();