sonar critical for Exception Handling 57/26757/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:34:50 +0000 (09:04 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:34:50 +0000 (09:04 +0530)
Either log or rethrow this exception
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-104

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

index 9c74f72..070281c 100644 (file)
@@ -102,6 +102,7 @@ public class MirrorMakerAgent {
                                try {
                                        input.close();
                                } catch (IOException e) {
+                                       logger.error("IOException" + e);
                                        e.printStackTrace();
                                }
                        }

© 2017 ONAP. Copyright © The Linux Foundation ®. All Rights Reserved.
The Linux Foundation has registered trademarks and uses trademarks.
For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.
Linux is a registered trademark of Linus Torvalds.
Privacy Policy and Terms of Use