mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fixed major issues ("Loose coupling") reported in Sonar
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@71960 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -23,6 +23,7 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.sf.acegisecurity.Authentication;
|
||||
import net.sf.acegisecurity.ConfigAttribute;
|
||||
@@ -59,7 +60,7 @@ public class RMEntryVoter extends RMSecurityCommon
|
||||
private CapabilityService capabilityService;
|
||||
|
||||
/** Policy map */
|
||||
private HashMap<String, Policy> policies = new HashMap<String, Policy>();
|
||||
private Map<String, Policy> policies = new HashMap<String, Policy>();
|
||||
|
||||
/**
|
||||
* @param capabilityService capability service
|
||||
|
@@ -19,6 +19,7 @@
|
||||
package org.alfresco.module.org_alfresco_module_rm.capability.policy;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
|
||||
import net.sf.acegisecurity.ConfigAttribute;
|
||||
@@ -47,7 +48,7 @@ public class ConfigAttributeDefinition
|
||||
|
||||
private SimplePermissionReference required;
|
||||
|
||||
private HashMap<Integer, Integer> parameters = new HashMap<Integer, Integer>(2, 1.0f);
|
||||
private Map<Integer, Integer> parameters = new HashMap<Integer, Integer>(2, 1.0f);
|
||||
|
||||
private boolean parent = false;
|
||||
|
||||
@@ -113,7 +114,7 @@ public class ConfigAttributeDefinition
|
||||
return required;
|
||||
}
|
||||
|
||||
public HashMap<Integer, Integer> getParameters()
|
||||
public Map<Integer, Integer> getParameters()
|
||||
{
|
||||
return parameters;
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ package org.alfresco.module.org_alfresco_module_rm.fileplan;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Deque;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedList;
|
||||
@@ -375,7 +376,7 @@ public class FilePlanServiceImpl extends ServiceBaseImpl
|
||||
/**
|
||||
* Helper method to build a <b>NodeRef</b> path from the node to the RM root
|
||||
*/
|
||||
private void getNodeRefPathRecursive(NodeRef nodeRef, LinkedList<NodeRef> nodeRefPath)
|
||||
private void getNodeRefPathRecursive(NodeRef nodeRef, Deque<NodeRef> nodeRefPath)
|
||||
{
|
||||
if (!isFilePlanComponent(nodeRef))
|
||||
{
|
||||
|
Reference in New Issue
Block a user