summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/att
diff options
context:
space:
mode:
authorvarun gudisena <vg411h@att.com>2018-02-06 14:25:21 +0000
committerGerrit Code Review <gerrit@onap.org>2018-02-06 14:25:21 +0000
commit8cf58b2176c2e7e197e7d7844272af57b85df0a7 (patch)
tree28919c6ede1ec956df7bb8bcd169124eb11c290b /src/main/java/com/att
parent990f74107df811cbf04c88e892b763bf522ff5b2 (diff)
parent737e0f13a19b68e9d6d6d48b6df5395127c45f67 (diff)
Merge "sonar design for error-handling"
Diffstat (limited to 'src/main/java/com/att')
-rw-r--r--src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
index 341e6bd..d217f27 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
@@ -166,7 +166,7 @@ public class MirrorMakerAgent {
prop.store(out, "");
} catch (Exception e) {
- e.printStackTrace();
+ logger.error("Exception at checkPropertiesFile " +e);
}
} finally {
if (input != null) {
@@ -380,7 +380,7 @@ public class MirrorMakerAgent {
}
}
logger.info("Adding new MirrorMaker:" + newMirrorMaker.name);
- if (!exists && mirrorMakers != null) {
+ if (exists == false && mirrorMakers != null) {
mirrorMakers.getListMirrorMaker().add(newMirrorMaker);
} else if (exists == false && mirrorMakers == null) {
mirrorMakers = new ListMirrorMaker();