diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java index 1d6f002d09a1..07075d9688a8 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessor.java @@ -83,7 +83,7 @@ * "fixedRate", "fixedDelay", or "cron" expression provided via the annotation. * *
This post-processor is automatically registered by Spring's
- * {@code Autodetects any {@link SchedulingConfigurer} instances in the container,
@@ -395,8 +395,7 @@ protected void processScheduled(Scheduled scheduled, Method method, Object bean)
try {
Runnable runnable = createRunnable(bean, method);
boolean processedSchedule = false;
- String errorMessage =
- "Exactly one of the 'cron', 'fixedDelay(String)', or 'fixedRate(String)' attributes is required";
+ String errorMessage = "Exactly one of the 'cron', 'fixedDelay' or 'fixedRate' attributes is required";
Set