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
This commit is contained in:
Olivier Lamy 2013-01-03 00:15:00 +00:00
parent 040229a607
commit fef0fdf2d4
1 changed files with 2 additions and 2 deletions

View 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 );
}
/**