ALF-1926 - org.alfresco.jcr.item.PropertyImpl.remove() throws ValueFormatException on multi-valued properties

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18949 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2010-03-02 14:23:52 +00:00
parent 98b2c31c61
commit 9ad5ee91d3

View File

@@ -107,9 +107,16 @@ public class PropertyImpl extends ItemImpl implements Property
* @see javax.jcr.Item#remove() * @see javax.jcr.Item#remove()
*/ */
public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException public void remove() throws VersionException, LockException, ConstraintViolationException, RepositoryException
{
if (getDefinition().isMultiple())
{
setValue((Value[])null);
}
else
{ {
setValue((Value)null); setValue((Value)null);
} }
}
/* (non-Javadoc) /* (non-Javadoc)
* @see javax.jcr.Property#setValue(javax.jcr.Value) * @see javax.jcr.Property#setValue(javax.jcr.Value)