Browse Source

Merge pull request #26651 from MichelTenVoorde

* pr/26651:
  Polish "Update reference to deprecated CronSequenceGenerator"
  Update reference to deprecated CronSequenceGenerator

Closes gh-26651
pull/26658/head
Stephane Nicoll 5 years ago
parent
commit
4b80ef21b6
  1. 4
      spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java
  2. 6
      spring-context/src/main/java/org/springframework/scheduling/config/CronTask.java
  3. 2
      spring-context/src/main/resources/org/springframework/scheduling/config/spring-task.xsd

4
spring-context/src/main/java/org/springframework/scheduling/annotation/Scheduled.java

@ -1,5 +1,5 @@ @@ -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.
@ -85,7 +85,7 @@ public @interface Scheduled { @@ -85,7 +85,7 @@ public @interface Scheduled {
* trigger, primarily meant for externally specified values resolved by a
* <code>${...}</code> 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 "";

6
spring-context/src/main/java/org/springframework/scheduling/config/CronTask.java

@ -1,5 +1,5 @@ @@ -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; @@ -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

2
spring-context/src/main/resources/org/springframework/scheduling/config/spring-task.xsd

@ -244,7 +244,7 @@ @@ -244,7 +244,7 @@
<xsd:attribute name="cron" type="xsd:string" use="optional">
<xsd:annotation>
<xsd:documentation><![CDATA[
A cron-based trigger. See the org.springframework.scheduling.support.CronSequenceGenerator
A cron-based trigger. See the org.springframework.scheduling.support.CronExpression#parse
JavaDoc for example patterns.
]]></xsd:documentation>
</xsd:annotation>

Loading…
Cancel
Save