Sonar critical issues 19/41719/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Mon, 9 Apr 2018 12:38:49 +0000 (18:08 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Mon, 9 Apr 2018 12:38:49 +0000 (18:08 +0530)
 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 <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/test/clients/SimpleExamplePublisherWithResponse.java

index 4914688..9d179b2 100644 (file)
@@ -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);