sonar critical for errorhandling 07/39007/1
authorDushyant Singh Thakur <dt00503496@techmahindra.com>
Tue, 27 Mar 2018 09:39:42 +0000 (15:09 +0530)
committerDushyant Singh Thakur <dt00503496@techmahindra.com>
Tue, 27 Mar 2018 09:39:42 +0000 (15:09 +0530)
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-538

Change-Id: Ieda36798c26fb4c156f99cbd52886df9ad808696
Issue-ID: DMAAP-352
Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
src/main/java/com/att/nsa/cambria/service/impl/EventsServiceImpl.java

index e99def5..2d05d3d 100644 (file)
@@ -535,7 +535,7 @@ public class EventsServiceImpl implements EventsService {
                // start processing, building a batch to push to the backend
                final long startMs = System.currentTimeMillis();
                long count = 0;
-               long maxEventBatch =  1024 * 16;
+               long maxEventBatch =  (long)1024 * 16;
                String evenlen = AJSCPropertiesMap.getProperty(CambriaConstants.msgRtr_prop,BATCH_LENGTH);
                        if(null!=evenlen)maxEventBatch=Long.parseLong(evenlen);
                //final long maxEventBatch = ctx.getConfigReader().getSettings().getLong(BATCH_LENGTH, 1024 * 16);