Skip to content

Commit

Permalink
Avoid potential integer overflow in seconds->millis transformation
Browse files Browse the repository at this point in the history
Closes gh-25613
  • Loading branch information
jhoeller committed Aug 27, 2020
1 parent 265bc6c commit 6c977e9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -173,7 +173,7 @@ protected boolean isFallbackToSystemLocale() {
* a non-classpath location.
*/
public void setCacheSeconds(int cacheSeconds) {
this.cacheMillis = (cacheSeconds * 1000);
this.cacheMillis = cacheSeconds * 1000L;
}

/**
Expand Down

0 comments on commit 6c977e9

Please sign in to comment.