From: Surendra Reddy Katam Date: Fri, 30 Mar 2018 08:46:12 +0000 (+0530) Subject: Sonar critical issues X-Git-Tag: v1.1.4~14 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8e662e7917f7ea9c34b409da62fc8bc15027c413;p=dmaap%2Fmessagerouter%2Fdmaapclient.git 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=AV4-MbPP32hFUzlqc5XD&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/MRClientFactory.java Line No-246 Change-Id: Ib75d5049b80817c65a4413b48863e0a78999d814 Issue-ID: DMAAP-370 Signed-off-by: Surendra Reddy Katam --- diff --git a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java index a92151e..67de218 100644 --- a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java +++ b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java @@ -243,7 +243,7 @@ public class MRClientFactory { return new MRConsumerImpl(hostSet, topic, consumerGroup, consumerId, timeoutMs, limit, filter, apiKey, apiSecret); } catch (MalformedURLException e) { - throw new RuntimeException(e); + throw new IllegalArgumentException(e); } }