Skip to content

Commit 591429e

Browse files
gro-ggsnicoll
authored andcommitted
Fix exception message
initialDelayString is parsed into long, not integer. Closes gh-1615
1 parent d198626 commit 591429e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ protected void processScheduled(Scheduled scheduled, Method method, Object bean)
365365
}
366366
catch (NumberFormatException ex) {
367367
throw new IllegalArgumentException(
368-
"Invalid initialDelayString value \"" + initialDelayString + "\" - cannot parse into integer");
368+
"Invalid initialDelayString value \"" + initialDelayString + "\" - cannot parse into long");
369369
}
370370
}
371371
}

0 commit comments

Comments
 (0)