Fix lgtm.com alert: cast int to long before multiplication
The integer multiplication has the potential to overflow before the result is being cast to the 'long' result. Details: https://lgtm.com/projects/g/keycloak/keycloak/snapshot/dist-7900299-1490802114895/files/saml-core/src/main/java/org/keycloak/saml/processing/core/saml/v2/util/XMLTimeUtil.java#V133
This commit is contained in:
parent
2df1175315
commit
ff6dbd6bde
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ public class XMLTimeUtil {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public static long inMilis(int valueInMins) {
|
public static long inMilis(int valueInMins) {
|
||||||
return valueInMins * 60 * 1000;
|
return (long) valueInMins * 60 * 1000;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue