sonar critical for Exception Handling 63/26763/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:57:32 +0000 (09:27 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Fri, 22 Dec 2017 03:57:32 +0000 (09:27 +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-124

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

index 4e9de52..35a64c3 100644 (file)
@@ -122,6 +122,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