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 1a6a4598a1
commit f7440884c9

View File

@@ -178,7 +178,7 @@ public abstract class AbstractResourceBasedMessageSource extends AbstractMessage
* a non-classpath location.
*/
public void setCacheSeconds(int cacheSeconds) {
this.cacheMillis = (cacheSeconds * 1000);
this.cacheMillis = cacheSeconds * 1000L;
}
/**