mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
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:
@@ -43,7 +43,6 @@ public class CMISUtils
|
|||||||
{
|
{
|
||||||
out.writeObject(source);
|
out.writeObject(source);
|
||||||
out.flush();
|
out.flush();
|
||||||
out.close();
|
|
||||||
|
|
||||||
ObjectInputStream in = new ObjectInputStream(cos.getInputStream());
|
ObjectInputStream in = new ObjectInputStream(cos.getInputStream());
|
||||||
target = (T) in.readObject();
|
target = (T) in.readObject();
|
||||||
|
Reference in New Issue
Block a user