From 5c79c5b99c0e5b94084627efaecdfe2691492019 Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Mon, 9 Apr 2018 18:08:49 +0530 Subject: 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-MbUC32hFUzlqc5gx&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java Line No-64 Change-Id: Ifc25038de09c95af253e40baa946a4aca9af66fb Issue-ID: DMAAP-397 Signed-off-by: Surendra Reddy Katam --- .../com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java b/src/main/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java index 4914688..9d179b2 100644 --- a/src/main/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java +++ b/src/main/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java @@ -61,7 +61,7 @@ import com.att.nsa.mr.client.response.MRPublisherResponse; } } - public void publishMessage ( String producerFilePath , int count ) throws IOException, InterruptedException, Exception + public void publishMessage ( String producerFilePath , int count ) throws IOException, InterruptedException { // create our publisher final MRBatchingPublisher pub = MRClientFactory.createBatchingPublisher (producerFilePath,true); -- cgit 1.2.3-korg