Skip to content
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

fix: Adding equals and hashcode for CronSchedule #556

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

0x01F4
Copy link
Contributor

@0x01F4 0x01F4 commented Nov 13, 2024

Brief, plain english overview of your changes here

Adding Equals and HasCode for CronSchedule

Fixes

Reminders

  • Added/ran automated tests
  • Update README and/or examples
  • Ran mvn spotless:apply

cc @kagkarlsson

@0x01F4
Copy link
Contributor Author

0x01F4 commented Nov 15, 2024

@kagkarlsson Can you please merge this?

@kagkarlsson
Copy link
Owner

Thank you for contributing. Minor comment

Comment on lines +150 to +152
@Test
public void equals_and_hash_code() {
EqualsVerifier.forClass(CronSchedule.class).verify();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@0x01F4 0x01F4 changed the title Adding equals and hashcode for CronSchedule fix: Adding equals and hashcode for CronSchedule Nov 22, 2024
Copy link
Owner

@kagkarlsson kagkarlsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what the use-case is here, but can't hurt to have equals and hashcode, thanks! LGTM

@0x01F4
Copy link
Contributor Author

0x01F4 commented Nov 30, 2024

Not sure what the use-case is here, but can't hurt to have equals and hashcode, thanks! LGTM

I want reschedule on config change but when we reschedule next execution time change.So I want to check if schedule is same then we don't reschedule.

@0x01F4
Copy link
Contributor Author

0x01F4 commented Dec 11, 2024

@kagkarlsson can you merge this?

@kagkarlsson kagkarlsson merged commit f342f8d into kagkarlsson:master Dec 12, 2024
6 checks passed
@kagkarlsson
Copy link
Owner

🎉 This issue has been resolved in v15.1.0 (Release Notes)

@kagkarlsson kagkarlsson added the released Issue has been released label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Issue has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants