diff options
author | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-30 15:03:11 +0530 |
---|---|---|
committer | Surendra Reddy Katam <SK00524980@techmahindra.com> | 2018-03-30 15:03:11 +0530 |
commit | 55f758eafc0a1a3c8707a2e5110a053b961e166d (patch) | |
tree | 751aa5d96697d19ebf7b6df349b87c3e5e1b6041 /src/main/java/com/att | |
parent | 881ab9c53cc7d6e9b2735bedd6799abbc1c0c630 (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-MbO932hFUzlqc5WD&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/client/MRClientBuilders.java
Line No-301
Change-Id: Ifdfd6bba9c6acbd2f5c4a6d7731dce19873fa551
Issue-ID: DMAAP-372
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
Diffstat (limited to 'src/main/java/com/att')
-rw-r--r-- | src/main/java/com/att/nsa/mr/client/MRClientBuilders.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 f9b8039..96d6fc5 100644 --- a/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java +++ b/src/main/java/com/att/nsa/mr/client/MRClientBuilders.java @@ -298,7 +298,7 @@ public class MRClientBuilders protected MRTopicManager constructClient ( Collection<String> hosts ) { try { return new MRMetaClient ( hosts ); } catch (MalformedURLException e) { - throw new RuntimeException(e); + throw new IllegalArgumentException(e); } } } |