Fixed minor bugs (Trailing Comment) reported in Sonar

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/modules/recordsmanagement/HEAD@73863 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Tuna Aksoy
2014-06-15 12:28:10 +00:00
parent 112973072a
commit 307ddfd529

View File

@@ -103,7 +103,8 @@ public class RMListOfValuesConstraint extends ListOfValuesConstraint
String runAsUser = AuthenticationUtil.getRunAsUser(); String runAsUser = AuthenticationUtil.getRunAsUser();
if ((runAsUser != null) && (! runAsUser.equals(AuthenticationUtil.getSystemUserName())) && (caveatConfigService != null)) if ((runAsUser != null) && (! runAsUser.equals(AuthenticationUtil.getSystemUserName())) && (caveatConfigService != null))
{ {
List<String> allowedForUser = caveatConfigService.getRMAllowedValues(getShortName()); // get allowed values for current user // get allowed values for current user
List<String> allowedForUser = caveatConfigService.getRMAllowedValues(getShortName());
List<String> filteredList = new ArrayList<String>(allowedForUser.size()); List<String> filteredList = new ArrayList<String>(allowedForUser.size());
for (String allowed : allowedForUser) for (String allowed : allowedForUser)