Skip to content

Commit f7367ce

Browse files
committed
Merge branch '6.0.x'
2 parents 61c9cbc + 3fb98b6 commit f7367ce

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

spring-context/src/main/java/org/springframework/scheduling/support/QuartzCronField.java

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929

3030
/**
3131
* Extension of {@link CronField} for
32-
* <a href="https://www.quartz-scheduler.org>Quartz</a> -specific fields.
33-
* Created using the {@code parse*} methods, uses a {@link TemporalAdjuster}
32+
* <a href="https://www.quartz-scheduler.org">Quartz</a>-specific fields.
33+
*
34+
* <p>Created using the {@code parse*} methods, uses a {@link TemporalAdjuster}
3435
* internally.
3536
*
3637
* @author Arjen Poutsma
@@ -68,8 +69,9 @@ public static boolean isQuartzDaysOfMonthField(String value) {
6869
}
6970

7071
/**
71-
* Parse the given value into a days of months {@code QuartzCronField}, the fourth entry of a cron expression.
72-
* Expects a "L" or "W" in the given value.
72+
* Parse the given value into a days of months {@code QuartzCronField},
73+
* the fourth entry of a cron expression.
74+
* <p>Expects a "L" or "W" in the given value.
7375
*/
7476
public static QuartzCronField parseDaysOfMonth(String value) {
7577
int idx = value.lastIndexOf('L');
@@ -121,8 +123,9 @@ public static boolean isQuartzDaysOfWeekField(String value) {
121123
}
122124

123125
/**
124-
* Parse the given value into a days of week {@code QuartzCronField}, the sixth entry of a cron expression.
125-
* Expects a "L" or "#" in the given value.
126+
* Parse the given value into a days of week {@code QuartzCronField},
127+
* the sixth entry of a cron expression.
128+
* <p>Expects a "L" or "#" in the given value.
126129
*/
127130
public static QuartzCronField parseDaysOfWeek(String value) {
128131
int idx = value.lastIndexOf('L');
@@ -227,7 +230,7 @@ else if (dow == 7) { // Sunday
227230
}
228231

229232
/**
230-
* Return a temporal adjuster that finds the nth-to-last day of the month.
233+
* Returns a temporal adjuster that finds the nth-to-last day of the month.
231234
* @param offset the negative offset, i.e. -3 means third-to-last
232235
* @return a nth-to-last day-of-month adjuster
233236
*/
@@ -241,7 +244,7 @@ private static TemporalAdjuster lastDayWithOffset(int offset) {
241244
}
242245

243246
/**
244-
* Return a temporal adjuster that finds the weekday nearest to the given
247+
* Returns a temporal adjuster that finds the weekday nearest to the given
245248
* day-of-month. If {@code dayOfMonth} falls on a Saturday, the date is
246249
* moved back to Friday; if it falls on a Sunday (or if {@code dayOfMonth}
247250
* is 1 and it falls on a Saturday), it is moved forward to Monday.
@@ -292,7 +295,7 @@ private static boolean isWeekday(DayOfWeek dayOfWeek) {
292295
}
293296

294297
/**
295-
* Return a temporal adjuster that finds the last of the given doy-of-week
298+
* Returns a temporal adjuster that finds the last of the given day-of-week
296299
* in a month.
297300
*/
298301
private static TemporalAdjuster lastInMonth(DayOfWeek dayOfWeek) {

0 commit comments

Comments
 (0)