summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/nsa
diff options
context:
space:
mode:
authorDushyant Singh Thakur <dt00503496@techmahindra.com>2018-03-27 15:51:26 +0530
committerDushyant Singh Thakur <dt00503496@techmahindra.com>2018-03-27 15:51:26 +0530
commitc3fe1074e61a98543b38b0a14565b500e5580f73 (patch)
tree9a80b0c29f743658866ac0c5ecef550572bc8a7e /src/main/java/com/att/nsa
parent460b2066308869e50f7b5320726780676d0d1f05 (diff)
sonar critical for errorhandling
Cast one of the operands of this multiplication operation to a long Sonar Link: https://sonar.onap.org/project/issues?id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-VakU32hFUzlqc5wn&resolved=false&types=BUG Location: src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java Line No-439 Change-Id: I480793acd31de3ed539cfa24f1823383c4a0ebac Issue-ID: DMAAP-353 Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att/nsa')
-rw-r--r--src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java b/src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java
index e99def5..e6ad395 100644
--- a/src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java
+++ b/src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java
@@ -436,7 +436,7 @@ public class EventsServiceImpl implements EventsService {
final long startMs = System.currentTimeMillis();
long count = 0;
- long maxEventBatch=1024 * 16;
+ long maxEventBatch=(long)1024 * 16;
String batchlen = AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,BATCH_LENGTH);
if(null!=batchlen)maxEventBatch=Long.parseLong(batchlen);