aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-03 17:57:17 +0530
committerSurendra Reddy Katam <SK00524980@techmahindra.com>2018-04-03 17:57:17 +0530
commitf873b47b16a6bb019ffe708fca60df01dd171ef5 (patch)
tree8d2aa913b173e1e9a975c2bb26716b4671dc347a
parent6aa592dfc99e012feced5e7b696513a6d18687e7 (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=AWEpWai0-08if2a6yEXQ&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java Line No-115 Change-Id: Icc1be632dc04090c0f8013e8aff0a51fe4dbb14c Issue-ID: DMAAP-382 Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
-rw-r--r--src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
index b211695..77d47e8 100644
--- a/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
+++ b/src/main/java/com/att/nsa/mr/client/impl/MRSimplerBatchPublisher.java
@@ -112,7 +112,7 @@ public class MRSimplerBatchPublisher extends MRBaseClient implements MRBatchingP
return new MRSimplerBatchPublisher(fUrls, fTopic, fMaxBatchSize, fMaxBatchAgeMs, fCompress,
fAllowSelfSignedCerts, fMaxBatchSize);
} catch (MalformedURLException e) {
- throw new RuntimeException(e);
+ throw new IllegalArgumentException(e);
}
}