no need of synchronized block here
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428123 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fef0fdf2d4
commit
b951dc02fd
|
@ -217,13 +217,11 @@ public class CachedRbacManager
|
||||||
log.debug( "using cached user permission map" );
|
log.debug( "using cached user permission map" );
|
||||||
return el;
|
return el;
|
||||||
}
|
}
|
||||||
synchronized ( userPermissionsCache )
|
|
||||||
{
|
|
||||||
log.debug( "building user permission map" );
|
log.debug( "building user permission map" );
|
||||||
Map<String, List<Permission>> userPermMap = this.rbacImpl.getAssignedPermissionMap( principal );
|
Map<String, List<Permission>> userPermMap = this.rbacImpl.getAssignedPermissionMap( principal );
|
||||||
userPermissionsCache.put( principal, userPermMap );
|
userPermissionsCache.put( principal, userPermMap );
|
||||||
return userPermMap;
|
return userPermMap;
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue