From 6078edf54b1861ec518bc1a2124ccdf488e6c90b Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Mon, 2 Apr 2018 15:20:19 +0530 Subject: Sonar critical issues Define and throw a dedicated exception instead of using a generic one Sonar Link: https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AWE97JSU-08if2a6yOTq&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java Line No-108 Change-Id: I6a2cd881b55e49dc05cd6160a04ba5389eae9c65 Issue-ID: DMAAP-379 Signed-off-by: Surendra Reddy Katam --- src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java index 2bb4e73..b211695 100644 --- a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java +++ b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java @@ -105,7 +105,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP return new MRSimplerBatchPublisher(fUrls, fTopic, fMaxBatchSize, fMaxBatchAgeMs, fCompress, fAllowSelfSignedCerts, threadOccuranceTime); } catch (MalformedURLException e) { - throw new RuntimeException(e); + throw new IllegalArgumentException(e); } } else { try { -- cgit 1.2.3-korg