Fixed major issues reported by sonar (Simplify Boolean Return)

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@65400 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-03-22 16:24:13 +00:00
parent 8564a009fb
commit b3a5a0518a

View File

@@ -101,14 +101,12 @@ public class ServiceBaseImpl implements RecordsManagementModel
{
ParameterCheck.mandatory("nodeRef", nodeRef);
boolean isHold = false;
if (nodeService.exists(nodeRef) && instanceOf(nodeRef, TYPE_HOLD))
{
return true;
}
else
{
return false;
isHold = true;
}
return isHold;
}
/**