sonar critical for bugs,security test 59/30859/1
authorDushyant Singh Thakur <dt00503496@techmahindra.com>
Thu, 8 Feb 2018 12:04:04 +0000 (17:34 +0530)
committerDushyant Singh Thakur <dt00503496@techmahindra.com>
Thu, 8 Feb 2018 12:04:04 +0000 (17:34 +0530)
Cast one of the operands of this multiplication operation to a long
Sonar Link:
https://sonar.onap.org/component_issues?id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr#resolved=false|severities=CRITICAL|assignees=dthakur
Location:
src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java
Line No-85

Change-Id: I6ac2090b8c14eda1dcaffc055d4c44e07277ff63
Issue-ID: DMAAP-279
Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java

index 5f38443..ceb16c6 100644 (file)
@@ -82,7 +82,7 @@ public class KafkaConsumerCache {
        // the server at least every 30 seconds, timing out after 2 minutes should
        // be okay.
        // FIXME: consider allowing the client to specify its expected call rate?
-       private static final long kDefault_MustTouchEveryMs = 1000 * 60 * 2;
+       private static final long kDefault_MustTouchEveryMs = (long)1000 * 60 * 2;
 
        // check for expirations pretty regularly
        private static final long kDefault_SweepEverySeconds = 15;