add generic

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1373645 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-08-15 21:55:23 +00:00
parent e5af660c27
commit f2d0b3edc6
1 changed files with 2 additions and 2 deletions

View File

@ -208,7 +208,7 @@ public class CachedRbacManager
* @see org.apache.archiva.redback.rbac.RBACManager#getAssignedPermissionMap(java.lang.String)
*/
@SuppressWarnings( "unchecked" )
public synchronized Map getAssignedPermissionMap( String principal )
public synchronized Map<String, List<Permission>> getAssignedPermissionMap( String principal )
throws RbacObjectNotFoundException, RbacManagerException
{
Object el = userPermissionsCache.get( principal );
@ -216,7 +216,7 @@ public class CachedRbacManager
if ( el != null )
{
//log.debug( "using cached user permission map" );
return (Map) el;
return (Map<String, List<Permission>>) el;
}
else
{