-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Conversation
@kagkarlsson Can you please merge this? |
db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/task/CronTest.java
Outdated
Show resolved
Hide resolved
Thank you for contributing. Minor comment |
db-scheduler/src/test/java/com/github/kagkarlsson/scheduler/task/CronTest.java
Outdated
Show resolved
Hide resolved
@Test | ||
public void equals_and_hash_code() { | ||
EqualsVerifier.forClass(CronSchedule.class).verify(); |
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.
Nice 👍
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.
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. |
@kagkarlsson can you merge this? |
🎉 This issue has been resolved in |
Brief, plain english overview of your changes here
Adding Equals and HasCode for CronSchedule
Fixes
Reminders
mvn spotless:apply
cc @kagkarlsson