Polishing

This commit is contained in:
Juergen Hoeller 2024-01-29 14:19:48 +01:00
parent 2e9d6a1d4e
commit 969b18b0e8
4 changed files with 10 additions and 3 deletions

View File

@ -54,7 +54,11 @@ import org.springframework.util.Assert;
import org.springframework.util.ClassUtils; import org.springframework.util.ClassUtils;
/** /**
* Default implementation of the {@link LifecycleProcessor} strategy. * Spring's default implementation of the {@link LifecycleProcessor} strategy.
*
* <p>Provides interaction with {@link Lifecycle} and {@link SmartLifecycle} beans in
* groups for specific phases, on startup/shutdown as well as for explicit start/stop
* interactions on a {@link org.springframework.context.ConfigurableApplicationContext}.
* *
* <p>Provides interaction with {@link Lifecycle} and {@link SmartLifecycle} beans in * <p>Provides interaction with {@link Lifecycle} and {@link SmartLifecycle} beans in
* groups for specific phases, on startup/shutdown as well as for explicit start/stop * groups for specific phases, on startup/shutdown as well as for explicit start/stop

View File

@ -91,7 +91,7 @@ public abstract class ExecutorConfigurationSupport extends CustomizableThreadFac
/** /**
* Set the ThreadFactory to use for the ExecutorService's thread pool. * Set the ThreadFactory to use for the ExecutorService's thread pool.
* THe default is the underlying ExecutorService's default thread factory. * The default is the underlying ExecutorService's default thread factory.
* <p>In a Jakarta EE or other managed environment with JSR-236 support, * <p>In a Jakarta EE or other managed environment with JSR-236 support,
* consider specifying a JNDI-located ManagedThreadFactory: by default, * consider specifying a JNDI-located ManagedThreadFactory: by default,
* to be found at "java:comp/DefaultManagedThreadFactory". * to be found at "java:comp/DefaultManagedThreadFactory".

View File

@ -51,7 +51,6 @@ class BitsCronFieldTests {
assertThat(BitsCronField.parseMonth("1")).has(set(1)).has(clearRange(2, 12)); assertThat(BitsCronField.parseMonth("1")).has(set(1)).has(clearRange(2, 12));
assertThat(BitsCronField.parseDaysOfWeek("0")).has(set(7, 7)).has(clearRange(0, 6)); assertThat(BitsCronField.parseDaysOfWeek("0")).has(set(7, 7)).has(clearRange(0, 6));
assertThat(BitsCronField.parseDaysOfWeek("7-5")).has(clear(0)).has(setRange(1, 5)) assertThat(BitsCronField.parseDaysOfWeek("7-5")).has(clear(0)).has(setRange(1, 5))
.has(clear(6)).has(set(7)); .has(clear(6)).has(set(7));
} }

View File

@ -74,6 +74,7 @@ class QuartzCronFieldTests {
@Test @Test
void dayOfWeek_0(){ void dayOfWeek_0(){
// third Sunday (0) of the month
QuartzCronField field = QuartzCronField.parseDaysOfWeek("0#3"); QuartzCronField field = QuartzCronField.parseDaysOfWeek("0#3");
LocalDate last = LocalDate.of(2024, 1, 1); LocalDate last = LocalDate.of(2024, 1, 1);
@ -83,6 +84,7 @@ class QuartzCronFieldTests {
@Test @Test
void dayOfWeek_1(){ void dayOfWeek_1(){
// third Monday (1) of the month
QuartzCronField field = QuartzCronField.parseDaysOfWeek("1#3"); QuartzCronField field = QuartzCronField.parseDaysOfWeek("1#3");
LocalDate last = LocalDate.of(2024, 1, 1); LocalDate last = LocalDate.of(2024, 1, 1);
@ -92,6 +94,7 @@ class QuartzCronFieldTests {
@Test @Test
void dayOfWeek_2(){ void dayOfWeek_2(){
// third Tuesday (2) of the month
QuartzCronField field = QuartzCronField.parseDaysOfWeek("2#3"); QuartzCronField field = QuartzCronField.parseDaysOfWeek("2#3");
LocalDate last = LocalDate.of(2024, 1, 1); LocalDate last = LocalDate.of(2024, 1, 1);
@ -101,6 +104,7 @@ class QuartzCronFieldTests {
@Test @Test
void dayOfWeek_7() { void dayOfWeek_7() {
// third Sunday (7 as alternative to 0) of the month
QuartzCronField field = QuartzCronField.parseDaysOfWeek("7#3"); QuartzCronField field = QuartzCronField.parseDaysOfWeek("7#3");
LocalDate last = LocalDate.of(2024, 1, 1); LocalDate last = LocalDate.of(2024, 1, 1);