summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att/nsa
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-02 11:15:06 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-02 11:15:06 +0530
commit76f3585396b722ea389b8ed28d44b9353fa2e42a (patch)
treece4444e21e6d934b85404d9c14868dde9810a20f /src/main/java/com/att/nsa
parent4646bcb6b3bce84fe8efb877cfa259756ff87993 (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=AWE8fY-w-08if2a6yLVJ&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/MRClientFactory.java Line No-587 Change-Id: Id1ee9768298af3f33cd67352e863a5f0f083ba64 Issue-ID: DMAAP-378 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att/nsa')
-rw-r--r--src/main/java/com/att/nsa/mr/client/MRClientFactory.java2
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 67de218..8513129 100644
--- a/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
+++ b/src/main/java/com/att/nsa/mr/client/MRClientFactory.java
@@ -584,7 +584,7 @@ public class MRClientFactory {
try {
sub = new MRConsumerImpl(MRConsumerImpl.stringToList(host), topic, group, id, i, j, null, null, null);
} catch (MalformedURLException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
sub.setUsername(username);
sub.setPassword(password);