diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-29 12:45:57 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-29 12:45:57 +0530 |
commit | 4bbe7891b209b2453d21423a4d4fe032b7c224ab (patch) | |
tree | 3dc181169751d125e19add0f9c0327265d841763 /src/main/java/com | |
parent | 83a6dfd45167ebfc3592824cd5c72230a5b61786 (diff) |
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 <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/att/nsa/mr/client/MRClientFactory.java | 2 |
1 files changed, 1 insertions, 1 deletions
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; |