From eeab891d1b878ece7baf19126aed04cc837d1e58 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 7 Jan 2013 15:16:21 +0000 Subject: [PATCH] add more generics git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1429835 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/redback/rbac/jdo/JdoRbacManager.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/main/java/org/apache/archiva/redback/rbac/jdo/JdoRbacManager.java b/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/main/java/org/apache/archiva/redback/rbac/jdo/JdoRbacManager.java index ae52d209b..ff2c913e1 100644 --- a/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/main/java/org/apache/archiva/redback/rbac/jdo/JdoRbacManager.java +++ b/redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/main/java/org/apache/archiva/redback/rbac/jdo/JdoRbacManager.java @@ -103,7 +103,7 @@ public class JdoRbacManager { RBACObjectAssertions.assertValid( role ); - return (Role) jdo.saveObject( role, new String[]{ ROLE_DETAIL } ); + return jdo.saveObject( role, new String[]{ ROLE_DETAIL } ); } public boolean roleExists( Role role ) @@ -286,7 +286,7 @@ public class JdoRbacManager { RBACObjectAssertions.assertValid( permission ); - return (Permission) jdo.saveObject( permission, null ); + return jdo.saveObject( permission, null ); } public boolean permissionExists( Permission permission ) @@ -369,7 +369,7 @@ public class JdoRbacManager throws RbacObjectInvalidException, RbacManagerException { RBACObjectAssertions.assertValid( operation ); - return (Operation) jdo.saveObject( operation, null ); + return jdo.saveObject( operation, null ); } public boolean operationExists( Operation operation ) @@ -454,7 +454,7 @@ public class JdoRbacManager throws RbacObjectInvalidException, RbacManagerException { RBACObjectAssertions.assertValid( resource ); - return (Resource) jdo.saveObject( resource, null ); + return jdo.saveObject( resource, null ); } public boolean resourceExists( Resource resource ) @@ -545,7 +545,7 @@ public class JdoRbacManager fireRbacUserAssignmentSaved( userAssignment ); - return (UserAssignment) jdo.saveObject( userAssignment, new String[]{ ROLE_DETAIL } ); + return jdo.saveObject( userAssignment, new String[]{ ROLE_DETAIL } ); } public boolean userAssignmentExists( String principal ) -- 2.39.5