throw new ClassCastException( "MemoryRole.addPermissions(memoryPermission) parameter must be instanceof "
+ MemoryPermission.class.getName() );
}
- getPermissions().add( ( (MemoryPermission) memoryPermission ) );
+ getPermissions().add( memoryPermission );
}
/**
throw new ClassCastException( "MemoryRole.removePermissions(memoryPermission) parameter must be instanceof "
+ MemoryPermission.class.getName() );
}
- getPermissions().remove( ( (MemoryPermission) memoryPermission ) );
+ getPermissions().remove( memoryPermission );
}
/**