From 5aef87f12061d0389ea1857ede1beccc109c4775 Mon Sep 17 00:00:00 2001 From: Michel ten Voorde Date: Mon, 8 Mar 2021 23:45:59 +0100 Subject: [PATCH 1/2] Update reference to deprecated CronSequenceGenerator See gh-26651 --- .../org/springframework/scheduling/annotation/Scheduled.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java index ad8a477d380..f545c8b02ba 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java @@ -85,7 +85,7 @@ public @interface Scheduled { * trigger, primarily meant for externally specified values resolved by a * ${...} placeholder. * @return an expression that can be parsed to a cron schedule - * @see org.springframework.scheduling.support.CronSequenceGenerator + * @see org.springframework.scheduling.support.CronExpression#parse(String) */ String cron() default ""; From d308985edc4c5b42d6d2e268f1dd3a5a7e59b9f5 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Tue, 9 Mar 2021 08:14:22 +0100 Subject: [PATCH 2/2] Polish "Update reference to deprecated CronSequenceGenerator" See gh-26651 --- .../springframework/scheduling/annotation/Scheduled.java | 2 +- .../org/springframework/scheduling/config/CronTask.java | 6 +++--- .../org/springframework/scheduling/config/spring-task.xsd | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java index f545c8b02ba..415c7238179 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java +++ b/spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2019 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/spring-context/src/main/java/org/springframework/scheduling/config/CronTask.java b/spring-context/src/main/java/org/springframework/scheduling/config/CronTask.java index c011222cda6..a8af8ed3620 100644 --- a/spring-context/src/main/java/org/springframework/scheduling/config/CronTask.java +++ b/spring-context/src/main/java/org/springframework/scheduling/config/CronTask.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2017 the original author or authors. + * Copyright 2002-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,8 +20,8 @@ import org.springframework.scheduling.support.CronTrigger; /** * {@link TriggerTask} implementation defining a {@code Runnable} to be executed according - * to a {@linkplain org.springframework.scheduling.support.CronSequenceGenerator standard - * cron expression}. + * to a {@linkplain org.springframework.scheduling.support.CronExpression#parse(String) + * standard cron expression}. * * @author Chris Beams * @since 3.2 diff --git a/spring-context/src/main/resources/org/springframework/scheduling/config/spring-task.xsd b/spring-context/src/main/resources/org/springframework/scheduling/config/spring-task.xsd index 414a2a35865..d33af8ab099 100644 --- a/spring-context/src/main/resources/org/springframework/scheduling/config/spring-task.xsd +++ b/spring-context/src/main/resources/org/springframework/scheduling/config/spring-task.xsd @@ -244,7 +244,7 @@