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 {