In anticipation of substantive changes required to implement "initial
delay" support in the <task:scheduled> element and @Scheduled
annotation, the following updates have been made to the components and
infrastructure supporting scheduled task execution:
- Fix code style violations
- Fix compiler warnings
- Add Javadoc where missing, update to use {@code} tags, etc.
- Organize imports to follow conventions
@ -65,7 +65,7 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@@ -65,7 +65,7 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
Assert.notNull(taskScheduler,"TaskScheduler must not be null");
@ -73,9 +73,9 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@@ -73,9 +73,9 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
Assert.notNull(scheduler,"Scheduler object must not be null");
@ -91,7 +91,7 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@@ -91,7 +91,7 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@ -121,6 +121,14 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@@ -121,6 +121,14 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@ -142,17 +150,6 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@@ -142,17 +150,6 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@ -165,14 +162,20 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@@ -165,14 +162,20 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@ -200,7 +203,6 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@@ -200,7 +203,6 @@ public class ScheduledTaskRegistrar implements InitializingBean, DisposableBean
@ -87,9 +87,8 @@ public class ScheduledTasksBeanDefinitionParser extends AbstractSingleBeanDefini
@@ -87,9 +87,8 @@ public class ScheduledTasksBeanDefinitionParser extends AbstractSingleBeanDefini
@ -269,7 +270,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -269,7 +270,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
publicstaticclassFixedDelayTestBean{
staticclassFixedDelayTestBean{
@Scheduled(fixedDelay=5000)
publicvoidfixedDelay(){
@ -277,7 +278,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -277,7 +278,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
publicstaticclassFixedRateTestBean{
staticclassFixedRateTestBean{
@Scheduled(fixedRate=3000)
publicvoidfixedRate(){
@ -285,7 +286,15 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -285,7 +286,15 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
publicstaticclassCronTestBean{
staticclassFixedRateWithInitialDelayTestBean{
@Scheduled(initialDelay=1000,fixedRate=3000)
publicvoidfixedRate(){
}
}
staticclassCronTestBean{
@Scheduled(cron="*/7 * * * * ?")
publicvoidcron()throwsIOException{
@ -295,7 +304,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -295,7 +304,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
privatestaticclassEmptyAnnotationTestBean{
staticclassEmptyAnnotationTestBean{
@Scheduled
publicvoidinvalid(){
@ -304,7 +313,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -304,7 +313,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
privatestaticclassInvalidCronTestBean{
staticclassInvalidCronTestBean{
@Scheduled(cron="abc")
publicvoidinvalid(){
@ -313,7 +322,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -313,7 +322,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
privatestaticclassNonVoidReturnTypeTestBean{
staticclassNonVoidReturnTypeTestBean{
@Scheduled(fixedRate=3000)
publicStringinvalid(){
@ -323,7 +332,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -323,7 +332,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
privatestaticclassNonEmptyParamListTestBean{
staticclassNonEmptyParamListTestBean{
@Scheduled(fixedRate=3000)
publicvoidinvalid(Stringoops){
@ -344,7 +353,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -344,7 +353,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@ -352,7 +361,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -352,7 +361,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
privatestaticclassMetaAnnotationCronTestBean{
staticclassMetaAnnotationCronTestBean{
@Hourly
publicvoidgenerateReport(){
@ -360,7 +369,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -360,7 +369,7 @@ public class ScheduledAnnotationBeanPostProcessorTests {
}
privatestaticclassPropertyPlaceholderTestBean{
staticclassPropertyPlaceholderTestBean{
@Scheduled(cron="${schedules.businessHours}")
publicvoidx(){
@ -370,11 +379,11 @@ public class ScheduledAnnotationBeanPostProcessorTests {
@@ -370,11 +379,11 @@ public class ScheduledAnnotationBeanPostProcessorTests {