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

Refactoring CronTrigger variable names #327

Merged
merged 2 commits into from
Aug 16, 2023

Conversation

mswatosh
Copy link
Member

Fixes #318

Clarifies some of the variables in CronTrigger for better readability.

@mswatosh mswatosh requested a review from njr-11 August 15, 2023 19:36
@mswatosh mswatosh self-assigned this Aug 15, 2023
Copy link
Contributor

@aubi aubi left a comment

Choose a reason for hiding this comment

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

I agree, these names are much better.

final int m, final int year, final ZonedDateTime time) {
if (min + 1 < minutes.length) {
return time.withMinute(minutes[min + 1]).withSecond(seconds[0]);
private ZonedDateTime nextMinute(final int minute, final int hourIndex, final int dayIndex, final int lastDayIndex, final int dayOfMonth,
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be minuteIndex to be consistent with all of the other renames?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch, I'll get that updated

@mswatosh mswatosh requested a review from njr-11 August 16, 2023 13:42
@mswatosh mswatosh merged commit 63654a1 into jakartaee:main Aug 16, 2023
2 checks passed
@KyleAure KyleAure mentioned this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor CronTrigger.java for readability
3 participants