-
Notifications
You must be signed in to change notification settings - Fork 247
Remove redundant Equals and GetHashCode implementations
#810
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…de overrides, IComparable<AlarmOccurrence>
minichma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. JFYI, I tried to set breakpoints on the main branch in the methods being removed by this branch and ran the updated unit tests. There are still quite some invocations throughout the test cases, mostly comparing some components for equality or adding them to HashSets. Not sure any of them need to be updated.
|
Thanks for the review. Indeed there were a some of tests left to be removed using |
…#810) * `Calendar`: Remove Equals and GetHashCode overrides * `CalendarEvent`: Remove Equals and GetHashCode overrides * `CalendarCollection`: Remove Equals and GetHashCode overrides * `RecurringComponent`: Remove Equals and GetHashCode overrides * `Journal`: Remove Equals and GetHashCode overrides * `AlarmOccurrence` (`RecurringComponent`): Remove Equals and GetHashCode overrides, IComparable<AlarmOccurrence> * `Attachment`: Remove Equals and GetHashCode overrides * `Attendee`: Remove Equals and GetHashCode overrides * `GeographicLocation`: Remove Equals and GetHashCode overrides * `Organizer`, `PeriodList`: Remove Equals and GetHashCode overrides * `RecurrencePattern`: Remove Equals and GetHashCode overrides * `Trigger`: Remove Equals and GetHashCode overrides * `VTimeZoneInfo`: Remove Equals and GetHashCode overrides * Remove remaining test with explict calls to `Equals` and `GetHashCode`
…#810) * `Calendar`: Remove Equals and GetHashCode overrides * `CalendarEvent`: Remove Equals and GetHashCode overrides * `CalendarCollection`: Remove Equals and GetHashCode overrides * `RecurringComponent`: Remove Equals and GetHashCode overrides * `Journal`: Remove Equals and GetHashCode overrides * `AlarmOccurrence` (`RecurringComponent`): Remove Equals and GetHashCode overrides, IComparable<AlarmOccurrence> * `Attachment`: Remove Equals and GetHashCode overrides * `Attendee`: Remove Equals and GetHashCode overrides * `GeographicLocation`: Remove Equals and GetHashCode overrides * `Organizer`, `PeriodList`: Remove Equals and GetHashCode overrides * `RecurrencePattern`: Remove Equals and GetHashCode overrides * `Trigger`: Remove Equals and GetHashCode overrides * `VTimeZoneInfo`: Remove Equals and GetHashCode overrides * Remove remaining test with explict calls to `Equals` and `GetHashCode` Remove redundant `Equals` and `GetHashCode` implementations (ical-org#810) * `Calendar`: Remove Equals and GetHashCode overrides * `CalendarEvent`: Remove Equals and GetHashCode overrides * `CalendarCollection`: Remove Equals and GetHashCode overrides * `RecurringComponent`: Remove Equals and GetHashCode overrides * `Journal`: Remove Equals and GetHashCode overrides * `AlarmOccurrence` (`RecurringComponent`): Remove Equals and GetHashCode overrides, IComparable<AlarmOccurrence> * `Attachment`: Remove Equals and GetHashCode overrides * `Attendee`: Remove Equals and GetHashCode overrides * `GeographicLocation`: Remove Equals and GetHashCode overrides * `Organizer`, `PeriodList`: Remove Equals and GetHashCode overrides * `RecurrencePattern`: Remove Equals and GetHashCode overrides * `Trigger`: Remove Equals and GetHashCode overrides * `VTimeZoneInfo`: Remove Equals and GetHashCode overrides * Remove remaining test with explict calls to `Equals` and `GetHashCode`



Calendar: Remove Equals and GetHashCode overridesCalendarEvent(RecurringComponent): Remove Equals and GetHashCode overridesCalendarCollection: Remove Equals and GetHashCode overridesRecurringComponent: Remove Equals and GetHashCode overridesJournal(RecurringComponent): Remove Equals and GetHashCode overridesAlarm(RecurringComponent): Remove Equals and GetHashCode overridesVTimeZone(RecurringComponent): Remove Equals and GetHashCode overridesAlarmOccurrence(RecurringComponent): Remove Equals and GetHashCode overrides, IComparableAttachment: Remove Equals and GetHashCode overridesAttendee: Remove Equals and GetHashCode overridesGeographicLocation: Remove Equals and GetHashCode overridesOrganizer: Remove Equals and GetHashCode overridesPeriodList: Remove Equals and GetHashCode overridesRecurrencePattern: Remove Equals and GetHashCode overridesTrigger: Remove Equals and GetHashCode overridesVTimeZoneInfo: Remove Equals and GetHashCode overridesResolves #274