diff options
author | varun gudisena <vg411h@att.com> | 2018-02-07 16:41:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-02-07 16:41:18 +0000 |
commit | 82765e74a39c5f770e84f5fbe9bc285b404c0f78 (patch) | |
tree | 38c707aa6a405066eb4497155bbeca5f681e00e1 /src/main | |
parent | 198d6471a33ea743fa006d34b00144fa94e9092f (diff) | |
parent | bcf5bd04ea03bb4909a9de508ed0a90518457e5b (diff) |
Merge "sonar major for error-handling"
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java index e533a72..ad1e20f 100644 --- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java +++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java @@ -183,7 +183,7 @@ public class MirrorMakerAgent { out.close(); } catch (IOException e) { e.printStackTrace(); - logger.error("IOException" + e); + logger.error("Exception is : "+e); } } } @@ -366,7 +366,7 @@ public class MirrorMakerAgent { } } catch (Exception e) { - logger.error("Exception is : " +e); + logger.error("Exception at readAgentTopic : " + e); } } @@ -390,7 +390,7 @@ public class MirrorMakerAgent { } else if (exists == false && mirrorMakers == null) { mirrorMakers = new ListMirrorMaker(); ArrayList<MirrorMaker> list = mirrorMakers.getListMirrorMaker(); - list = new ArrayList<MirrorMaker>(); + list = new ArrayList(); list.add(newMirrorMaker); mirrorMakers.setListMirrorMaker(list); } |