mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merge pull request #21 from Alfresco/fix/SEARCH-956_Critical_Sonar_Reports_for_Alfresco_Data_Model
SEARCH-956 (Critical Sonar Reports: Alfresco Data Model)
This commit is contained in:
@@ -44,8 +44,10 @@ public class CMISUtils
|
|||||||
out.writeObject(source);
|
out.writeObject(source);
|
||||||
out.flush();
|
out.flush();
|
||||||
|
|
||||||
ObjectInputStream in = new ObjectInputStream(cos.getInputStream());
|
try (ObjectInputStream in = new ObjectInputStream(cos.getInputStream()))
|
||||||
|
{
|
||||||
target = (T) in.readObject();
|
target = (T) in.readObject();
|
||||||
|
}
|
||||||
} catch (Exception e)
|
} catch (Exception e)
|
||||||
{
|
{
|
||||||
throw new CmisRuntimeException("Object copy failed!", e);
|
throw new CmisRuntimeException("Object copy failed!", e);
|
||||||
|
Reference in New Issue
Block a user