Skip to content

Commit 6c977e9

Browse files
committed
Avoid potential integer overflow in seconds->millis transformation
Closes gh-25613
1 parent 265bc6c commit 6c977e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-context/src/main/java/org/springframework/context/support/AbstractResourceBasedMessageSource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ protected boolean isFallbackToSystemLocale() {
173173
* a non-classpath location.
174174
*/
175175
public void setCacheSeconds(int cacheSeconds) {
176-
this.cacheMillis = (cacheSeconds * 1000);
176+
this.cacheMillis = cacheSeconds * 1000L;
177177
}
178178

179179
/**

0 commit comments

Comments
 (0)