Skip to content

Commit

Permalink
Code review update
Browse files Browse the repository at this point in the history
  • Loading branch information
mswatosh authored and KyleAure committed Aug 24, 2023
1 parent 5deaea7 commit c232a30
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ private ZonedDateTime nextHour(final int hourIndex, final int dayIndex, final in
/**
* Advance to next minute.
*
* @param minute index of the minute in minutes[]
* @param minuteIndex index of the minute in minutes[]
* @param hourIndex index of the hour in hours[]
* @param dayIndex index of the day in daysOfMonth[]
* @param lastDayIndex index of the last day of the month in daysOfMonth[]
Expand All @@ -553,10 +553,10 @@ private ZonedDateTime nextHour(final int hourIndex, final int dayIndex, final in
* @param time Date/Time
* @return ZonedDateTime for next second
*/
private ZonedDateTime nextMinute(final int minute, final int hourIndex, final int dayIndex, final int lastDayIndex, final int dayOfMonth,
private ZonedDateTime nextMinute(final int minuteIndex, final int hourIndex, final int dayIndex, final int lastDayIndex, final int dayOfMonth,
final int monthIndex, final int year, final ZonedDateTime time) {
if (minute + 1 < minutes.length) {
return time.withMinute(minutes[minute + 1]).withSecond(seconds[0]);
if (minuteIndex + 1 < minutes.length) {
return time.withMinute(minutes[minuteIndex + 1]).withSecond(seconds[0]);
} else {
return nextHour(hourIndex, dayIndex, lastDayIndex, dayOfMonth, monthIndex, year, time);
}
Expand Down

0 comments on commit c232a30

Please sign in to comment.