diff --git a/spring-context/src/test/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessorTests.java b/spring-context/src/test/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessorTests.java index 59340eeff639..46077cb781c0 100644 --- a/spring-context/src/test/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessorTests.java +++ b/spring-context/src/test/java/org/springframework/scheduling/annotation/ScheduledAnnotationBeanPostProcessorTests.java @@ -369,11 +369,11 @@ public void composedAnnotationWithInitialDelayAndFixedRate() { assertEquals(1, postProcessor.getScheduledTasks().size()); Object target = context.getBean("target"); - ScheduledTaskRegistrar registrar = (ScheduledTaskRegistrar) new DirectFieldAccessor( - postProcessor).getPropertyValue("registrar"); + ScheduledTaskRegistrar registrar = (ScheduledTaskRegistrar) + new DirectFieldAccessor(postProcessor).getPropertyValue("registrar"); @SuppressWarnings("unchecked") - List fixedRateTasks = (List) new DirectFieldAccessor(registrar).getPropertyValue( - "fixedRateTasks"); + List fixedRateTasks = (List) + new DirectFieldAccessor(registrar).getPropertyValue("fixedRateTasks"); assertEquals(1, fixedRateTasks.size()); IntervalTask task = fixedRateTasks.get(0); ScheduledMethodRunnable runnable = (ScheduledMethodRunnable) task.getRunnable(); @@ -694,8 +694,7 @@ public void fixedRate() { static class SeveralFixedRatesWithSchedulesContainerAnnotationTestBean { - @Schedules({ @Scheduled(fixedRate = 4000), - @Scheduled(fixedRate = 4000, initialDelay = 2000) }) + @Schedules({@Scheduled(fixedRate = 4000), @Scheduled(fixedRate = 4000, initialDelay = 2000)}) public void fixedRate() { } }