From fef0fdf2d4aab53aa5491a888c9cb45714436b61 Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Thu, 3 Jan 2013 00:15:00 +0000 Subject: [PATCH] remove not anymore needed cast git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428121 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/archiva/redback/rbac/memory/MemoryRole.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/main/java/org/apache/archiva/redback/rbac/memory/MemoryRole.java b/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/main/java/org/apache/archiva/redback/rbac/memory/MemoryRole.java index c78bfd1d..9ab38f61 100644 --- a/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/main/java/org/apache/archiva/redback/rbac/memory/MemoryRole.java +++ b/redback-rbac/redback-rbac-providers/redback-rbac-memory/src/main/java/org/apache/archiva/redback/rbac/memory/MemoryRole.java @@ -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 ); } /**