Merge pull request #1636 from izeye:exception-message

* pr/1636:
  Fix an exception message in ScheduledAnnotationBeanPostProcessor
This commit is contained in:
Stephane Nicoll
2018-01-15 15:19:16 +01:00

View File

@@ -444,7 +444,7 @@ public class ScheduledAnnotationBeanPostProcessor
}
catch (NumberFormatException ex) {
throw new IllegalArgumentException(
"Invalid fixedRateString value \"" + fixedRateString + "\" - cannot parse into integer");
"Invalid fixedRateString value \"" + fixedRateString + "\" - cannot parse into long");
}
tasks.add(this.registrar.scheduleFixedRateTask(new FixedRateTask(runnable, fixedRate, initialDelay)));
}