mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Removed redundant local variables
This commit is contained in:
@@ -236,16 +236,14 @@ public class DispositionActionImpl implements DispositionAction,
|
||||
String eventName = (String)props.get(PROP_EVENT_EXECUTION_NAME);
|
||||
|
||||
// create event completion details
|
||||
EventCompletionDetails ecd = new EventCompletionDetails(
|
||||
return new EventCompletionDetails(
|
||||
nodeRef,
|
||||
eventName,
|
||||
services.getRecordsManagementEventService().getEvent(eventName).getDisplayLabel(),
|
||||
getBooleanValue(props.get(PROP_EVENT_EXECUTION_AUTOMATIC), false),
|
||||
getBooleanValue(props.get(PROP_EVENT_EXECUTION_COMPLETE), false),
|
||||
(Date)props.get(PROP_EVENT_EXECUTION_COMPLETED_AT),
|
||||
(String)props.get(PROP_EVENT_EXECUTION_COMPLETED_BY));
|
||||
|
||||
return ecd;
|
||||
(Date) props.get(PROP_EVENT_EXECUTION_COMPLETED_AT),
|
||||
(String) props.get(PROP_EVENT_EXECUTION_COMPLETED_BY));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -88,8 +88,7 @@ public abstract class ProtectedModelArtifact
|
||||
*/
|
||||
public void setName(String name)
|
||||
{
|
||||
QName qname = QName.createQName(name, namespaceService);
|
||||
this.name = qname;
|
||||
this.name = QName.createQName(name, namespaceService);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -693,8 +693,7 @@ public class FilePlanPermissionServiceImpl extends ServiceBaseImpl
|
||||
*/
|
||||
private QName constructAuditEventName(String authority, String permission)
|
||||
{
|
||||
QName auditProperty = QName.createQName(AUDIT_NAMESPACE, permission + " " + authority);
|
||||
return auditProperty;
|
||||
return QName.createQName(AUDIT_NAMESPACE, permission + " " + authority);
|
||||
}
|
||||
|
||||
private boolean canPerformPermissionAction(NodeRef nodeRef)
|
||||
|
Reference in New Issue
Block a user