From f2d0b3edc67894291167274f8d6789cf7418f8d9 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 15 Aug 2012 21:55:23 +0000 Subject: [PATCH] add generic git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1373645 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/archiva/redback/rbac/cached/CachedRbacManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/main/java/org/apache/archiva/redback/rbac/cached/CachedRbacManager.java b/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/main/java/org/apache/archiva/redback/rbac/cached/CachedRbacManager.java index 9cea58a6..56e36888 100644 --- a/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/main/java/org/apache/archiva/redback/rbac/cached/CachedRbacManager.java +++ b/redback-rbac/redback-rbac-providers/redback-rbac-cached/src/main/java/org/apache/archiva/redback/rbac/cached/CachedRbacManager.java @@ -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> 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>) el; } else {