From: Dushyant Singh Thakur Date: Wed, 28 Mar 2018 11:53:06 +0000 (+0530) Subject: sonar critical for errorhandling X-Git-Tag: v1.1.4~13^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=0bcd38ca4e6cb48fdbe2e127eaa5d7e482be6980;p=dmaap%2Fmessagerouter%2Fmsgrtr.git sonar critical for errorhandling Cast one of the operands of this multiplication operation to a long Sonar Link: https://sonar.onap.org/project/issues?assignees=dthakur&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VaiX32hFUzlqc5u2&resolved=false&types=BUG Location: src/main/java/com/att/nsa/cambria/security/DMaaPAuthenticatorImpl.java Line No-51 Change-Id: I59c64b6f5ed0a732a43b9cb4e8704302046bcacf Issue-ID: DMAAP-364 Signed-off-by: Dushyant Singh Thakur --- diff --git a/src/main/java/com/att/nsa/cambria/security/DMaaPAuthenticatorImpl.java b/src/main/java/com/att/nsa/cambria/security/DMaaPAuthenticatorImpl.java index 709d035..733daf7 100644 --- a/src/main/java/com/att/nsa/cambria/security/DMaaPAuthenticatorImpl.java +++ b/src/main/java/com/att/nsa/cambria/security/DMaaPAuthenticatorImpl.java @@ -48,7 +48,7 @@ public class DMaaPAuthenticatorImpl implements DMaaPAuthent // Setting timeout to a large value for testing purpose. // private static final long kDefaultRequestTimeWindow = 1000 * 60 * 10; // // 10 minutes - private static final long kDefaultRequestTimeWindow = 1000 * 60 * 10 * 10 * 10 * 10 * 10; + private static final long kDefaultRequestTimeWindow = (long)1000 * 60 * 10 * 10 * 10 * 10 * 10; /** * Construct the security manager against an API key database