]> source.dussan.org Git - archiva.git/commitdiff
add more generics
authorOlivier Lamy <olamy@apache.org>
Mon, 7 Jan 2013 15:16:21 +0000 (15:16 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 7 Jan 2013 15:16:21 +0000 (15:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1429835 13f79535-47bb-0310-9956-ffa450edef68

redback-rbac/redback-rbac-providers/redback-rbac-jdo/src/main/java/org/apache/archiva/redback/rbac/jdo/JdoRbacManager.java

index ae52d209b59470ae52f1f0f7cda2f7f2ed89897a..ff2c913e1dd2d1f81cacfc04a1b21154a854f39f 100644 (file)
@@ -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 )