diff options
author | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-03-27 15:09:42 +0530 |
---|---|---|
committer | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-03-27 15:09:42 +0530 |
commit | ed9deaffa807a441c15599bf46b977c2ca0d5f19 (patch) | |
tree | 65da31259af2c79c27ddb7b8d09daae85dc34275 /src/main/java/com/att/nsa | |
parent | 460b2066308869e50f7b5320726780676d0d1f05 (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-538
Change-Id: Ieda36798c26fb4c156f99cbd52886df9ad808696
Issue-ID: DMAAP-352
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.java | 2 |
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..2d05d3d 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 @@ -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); |