Skip to content
Snippets Groups Projects
Commit c776d1d2 authored by brinn's avatar brinn
Browse files

Refactor: change misleading variable name.

SVN: 28624
parent 1554e9fe
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,7 @@ class CapabilityMap ...@@ -94,7 +94,7 @@ class CapabilityMap
filePath)); filePath));
continue; continue;
} }
final String methodName = splitted[0]; final String capabilityName = splitted[0];
final String roleNames = splitted[1]; final String roleNames = splitted[1];
final String[] roleNameArray = StringUtils.split(roleNames, ","); final String[] roleNameArray = StringUtils.split(roleNames, ",");
for (String roleName : roleNameArray) for (String roleName : roleNameArray)
...@@ -102,18 +102,18 @@ class CapabilityMap ...@@ -102,18 +102,18 @@ class CapabilityMap
try try
{ {
final RoleWithHierarchy role = RoleWithHierarchy.valueOf(roleName); final RoleWithHierarchy role = RoleWithHierarchy.valueOf(roleName);
Collection<RoleWithHierarchy> roles = capMap.get(methodName); Collection<RoleWithHierarchy> roles = capMap.get(capabilityName);
if (roles == null) if (roles == null)
{ {
roles = new HashSet<RoleWithHierarchy>(); roles = new HashSet<RoleWithHierarchy>();
capMap.put(methodName, roles); capMap.put(capabilityName, roles);
} }
roles.add(role); roles.add(role);
if (operationLog.isDebugEnabled()) if (operationLog.isDebugEnabled())
{ {
operationLog.debug(String operationLog.debug(String
.format("Add to map: '%s' -> %s", methodName, role)); .format("Add to map: '%s' -> %s", capabilityName, role));
} }
} catch (IllegalArgumentException ex) } catch (IllegalArgumentException ex)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment