]> source.dussan.org Git - archiva.git/commitdiff
remove not anymore needed cast
authorOlivier Lamy <olamy@apache.org>
Thu, 3 Jan 2013 00:15:00 +0000 (00:15 +0000)
committerOlivier Lamy <olamy@apache.org>
Thu, 3 Jan 2013 00:15:00 +0000 (00:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428121 13f79535-47bb-0310-9956-ffa450edef68

redback-rbac/redback-rbac-providers/redback-rbac-memory/src/main/java/org/apache/archiva/redback/rbac/memory/MemoryRole.java

index c78bfd1d067b292ec0df265fa6e966df03178f47..9ab38f6117ca3512308e9f1b11279ca1cc64b12e 100644 (file)
@@ -79,7 +79,7 @@ public class MemoryRole
             throw new ClassCastException( "MemoryRole.addPermissions(memoryPermission) parameter must be instanceof "
                                               + MemoryPermission.class.getName() );
         }
-        getPermissions().add( ( (MemoryPermission) memoryPermission ) );
+        getPermissions().add( memoryPermission );
     }
 
     /**
@@ -169,7 +169,7 @@ public class MemoryRole
             throw new ClassCastException( "MemoryRole.removePermissions(memoryPermission) parameter must be instanceof "
                                               + MemoryPermission.class.getName() );
         }
-        getPermissions().remove( ( (MemoryPermission) memoryPermission ) );
+        getPermissions().remove( memoryPermission );
     }
 
     /**