Fixed major issues ("Bad practice - Method with Boolean return type returns explicit null") reported in Sonar

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71961 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-05-27 22:40:52 +00:00
parent 9fdbdc2155
commit aff70c9637
3 changed files with 5 additions and 5 deletions

View File

@@ -104,10 +104,10 @@ public class NotifyOfRecordsDueForReviewJobExecuter extends RecordsManagementJob
if(resultNodes.size() != 0)
{
//Send the email message - but we must not retry since email is not transactional
RetryingTransactionCallback<Boolean> txCallbackSendEmail = new RetryingTransactionCallback<Boolean>()
RetryingTransactionCallback<Void> txCallbackSendEmail = new RetryingTransactionCallback<Void>()
{
// Set the notification issued property.
public Boolean execute()
public Void execute()
{
// Send notification
recordsManagementNotificationHelper.recordsDueForReviewEmailNotification(resultNodes);

View File

@@ -792,7 +792,7 @@ public class FilePlanRoleServiceImpl implements FilePlanRoleService,
AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork<Object>()
{
public Boolean doWork()
public Void doWork()
{
String roleAuthority = authorityService.getName(AuthorityType.GROUP, getFullRoleName(role, rmRootNode));
authorityService.deleteAuthority(roleAuthority);

View File

@@ -396,7 +396,7 @@ public class FilePlanPermissionServiceImpl extends ServiceBaseImpl
runAsSystem(new AuthenticationUtil.RunAsWork<Object>()
{
public Boolean doWork()
public Void doWork()
{
if (isFilePlan(nodeRef))
{
@@ -519,7 +519,7 @@ public class FilePlanPermissionServiceImpl extends ServiceBaseImpl
{
runAsSystem(new AuthenticationUtil.RunAsWork<Object>()
{
public Boolean doWork()
public Void doWork()
{
// can't delete permissions if inherited (eg hold and transfer containers)
if (!permissionService.getInheritParentPermissions(nodeRef))