From c3fe1074e61a98543b38b0a14565b500e5580f73 Mon Sep 17 00:00:00 2001 From: Dushyant Singh Thakur Date: Tue, 27 Mar 2018 15:51:26 +0530 Subject: 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 --- src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit 1.2.3-korg