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:
Tuna Aksoy
2014-03-19 00:02:52 +00:00
parent dca3a954ac
commit 9847e15dda
6 changed files with 12 additions and 27 deletions

View File

@@ -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"))