Sonar critical issues 55/41355/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Fri, 6 Apr 2018 10:18:33 +0000 (15:48 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Fri, 6 Apr 2018 10:18:33 +0000 (15:48 +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-MbT632hFUzlqc5gn&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/dme/client/SimpleExamplePublisher.java
Line No-49

Change-Id: Ic2e6f3634cd63906accfa6e6cb594506cffc4ab9
Issue-ID: DMAAP-395
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/dme/client/SimpleExamplePublisher.java

index 0e8efda..18b3fcf 100644 (file)
@@ -48,7 +48,7 @@ public class SimpleExamplePublisher {
        static String transport = null;
        static String messageCount = null;
 
-       public void publishMessage(String producerFilePath) throws IOException, InterruptedException, Exception {
+       public void publishMessage(String producerFilePath) throws IOException, InterruptedException {
 
                // create our publisher