mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Added protected copy constructor
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20787 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -164,6 +164,20 @@ public class ContentData implements Serializable
|
||||
return contentData.contentUrl != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Copy constructor for derived class
|
||||
*
|
||||
* @param original the object to copy
|
||||
*/
|
||||
protected ContentData(ContentData original)
|
||||
{
|
||||
this.contentUrl = original.contentUrl;
|
||||
this.encoding = original.encoding;
|
||||
this.locale = original.locale;
|
||||
this.mimetype = original.mimetype;
|
||||
this.size = original.size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a content data using the {@link I18NUtil#getLocale() default locale}.
|
||||
*
|
||||
|
Reference in New Issue
Block a user