mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Avoid potential integer overflow in seconds->millis transformation
Closes gh-25613
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ public abstract class AbstractResourceBasedMessageSource extends AbstractMessage
|
||||
* a non-classpath location.
|
||||
*/
|
||||
public void setCacheSeconds(int cacheSeconds) {
|
||||
this.cacheMillis = (cacheSeconds * 1000);
|
||||
this.cacheMillis = cacheSeconds * 1000L;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user