File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
application/src/main/java/org/togetherjava/tjbot/features Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,9 @@ public static Schedule atFixedHour(int hourOfDay) {
102102 */
103103 public static Schedule atFixedRateFromNextFixedTime (int periodStartHour , int periodHours ) {
104104 // NOTE This scheduler could be improved, for example supporting arbitrary periods (not
105- // just
106- // hour-based). Also, it probably does not correctly handle all date/time-quirks, for
107- // example if a schedule would hit a time that does not exist for a specific date due to
108- // DST
109- // or similar issues. Those are minor though and can be ignored for now.
105+ // just hour-based). Also, it probably does not correctly handle all date/time-quirks,
106+ // for example if a schedule would hit a time that does not exist for a specific date
107+ // due to DST or similar issues. Those are minor though and can be ignored for now.
110108 if (periodStartHour < 0 || periodStartHour >= HOURS_OF_DAY ) {
111109 throw new IllegalArgumentException (
112110 "Schedule period start hour must be a valid hour of a day (0-23)" );
You can’t perform that action at this time.
0 commit comments