Avoid potential integer overflow in seconds->millis transformation

Closes gh-25613
This commit is contained in:
Juergen Hoeller
2020-08-27 15:32:54 +02:00
parent dc26030412
commit e4bf015ce1

View File

@@ -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;
}
/**