From: Surendra Reddy Katam Date: Thu, 29 Mar 2018 07:15:57 +0000 (+0530) Subject: Sonar major issues X-Git-Tag: v1.1.4~15 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F40065%2F1;p=dmaap%2Fmessagerouter%2Fdmaapclient.git Sonar major 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-MbPQ32hFUzlqc5XE&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/MRClientFactory.java Line No-542 Change-Id: Ic99472c3dfaf1bdebdce09688f5a20ce0fa16e9c Issue-ID: DMAAP-369 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 1c7e511..a92151e 100644 --- a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java +++ b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java @@ -539,7 +539,7 @@ public class MRClientFactory { try { cim = new MRMetaClient(hostSet); } catch (MalformedURLException e) { - throw new RuntimeException(e); + throw new IllegalArgumentException(e); } cim.setApiCredentials(apiKey, apiSecret); return cim;