sonar critical for Exception Handling 69/30369/2
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Tue, 6 Feb 2018 04:57:56 +0000 (10:27 +0530)
committerSoumendu Sekhar Acharya <SA00498080@techmahindra.com>
Wed, 7 Feb 2018 05:28:06 +0000 (05:28 +0000)
Re-interrupted this method 
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#resolved=false|severities=CRITICAL|assignees=Soumendu
Location:
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
Line No-213

Change-Id: If77a40f4080745b7bdf8f0867085801e218c303b
Issue-ID: DMAAP-231
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index 37236f3..5da4dba 100644 (file)
@@ -212,6 +212,7 @@ public class MirrorMakerAgent {
                                        try {
                                                Thread.sleep(1000);
                                        } catch (InterruptedException e) {
                                        try {
                                                Thread.sleep(1000);
                                        } catch (InterruptedException e) {
+                                                Thread.currentThread().interrupt();
                                        }
                                        mirrorMakers.getListMirrorMaker().set(i, mm);
                                } else {
                                        }
                                        mirrorMakers.getListMirrorMaker().set(i, mm);
                                } else {