diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-30 14:16:12 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-30 14:16:12 +0530 |
commit | 8e662e7917f7ea9c34b409da62fc8bc15027c413 (patch) | |
tree | 0fdcb761adb669092e3bc2587bdca039a46504c7 /src/main/java/com | |
parent | 4bbe7891b209b2453d21423a4d4fe032b7c224ab (diff) |
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 <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 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); } } |