mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed major issues reported by sonar (Unused formal parameter)
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@64829 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -37,7 +37,7 @@ public class RMAuthorityDAOImpl extends AuthorityDAOImpl
|
||||
{
|
||||
protected void addAuthorityNameIfMatches(Set<String> authorities, String authorityName, AuthorityType type)
|
||||
{
|
||||
if (isAuthorityNameMatching(authorities, authorityName, type))
|
||||
if (isAuthorityNameMatching(authorityName, type))
|
||||
{
|
||||
authorities.add(authorityName);
|
||||
}
|
||||
@@ -45,7 +45,7 @@ public class RMAuthorityDAOImpl extends AuthorityDAOImpl
|
||||
|
||||
protected void addAuthorityNameIfMatches(Set<String> authorities, String authorityName, AuthorityType type, Pattern pattern)
|
||||
{
|
||||
if (isAuthorityNameMatching(authorities, authorityName, type))
|
||||
if (isAuthorityNameMatching(authorityName, type))
|
||||
{
|
||||
if (pattern == null)
|
||||
{
|
||||
@@ -69,7 +69,7 @@ public class RMAuthorityDAOImpl extends AuthorityDAOImpl
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isAuthorityNameMatching(Set<String> authorities, String authorityName, AuthorityType type)
|
||||
private boolean isAuthorityNameMatching(String authorityName, AuthorityType type)
|
||||
{
|
||||
boolean isMatching = false;
|
||||
if (type == null || AuthorityType.getAuthorityType(authorityName).equals(type) && !getAuthorityZones(authorityName).contains("APP.RM"))
|
||||
|
Reference in New Issue
Block a user