From: Surendra Reddy Katam Date: Wed, 4 Apr 2018 06:51:22 +0000 (+0530) Subject: Sonar critical issues X-Git-Tag: v1.1.4~2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=4362c160c7aee33528a764597954738809521b7f;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-MbO932hFUzlqc5WC&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/MRClientBuilders.java Line No-282 Change-Id: If2f14bde9756c3318cb98f4d6e352acf550dc20e Issue-ID: DMAAP-384 Signed-off-by: Surendra Reddy Katam --- diff --git a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java index 96d6fc5..76df039 100644 --- a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java +++ b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java @@ -279,7 +279,7 @@ public class MRClientBuilders protected MRIdentityManager constructClient ( Collection hosts ) { try { return new MRMetaClient ( hosts ); } catch (MalformedURLException e) { - throw new RuntimeException(e); + throw new IllegalArgumentException(e); } } }