summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-05 17:18:51 +0530
committerDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-05 17:18:51 +0530
commitc4999261363c42758b50b31d33f910c5344fb339 (patch)
tree09eef99553b274c54e3da1e7631e5bff23eedadf /src
parentadf340af7852891c7c89b146cf9a272e57ddd825 (diff)
sonar minor for clumsy
Removed the literal false boolean value used ! instead Sonar Link: https://sonar.onap.org/component_issues?id=org.onap.dmaap.messagerouter.mirroragent%3AdmaapMMAgent#assignees=dthakur Location: src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java Line No-383 Change-Id: I87ecd3dc3193f455abd7a7fc0d3087b72f91da06 Issue-ID: DMAAP-224 Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
index d0237f1..3efbf4f 100644
--- a/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
+++ b/src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java
@@ -380,7 +380,7 @@ public class MirrorMakerAgent {
}
}
logger.info("Adding new MirrorMaker:" + newMirrorMaker.name);
- if (exists == false && mirrorMakers != null) {
+ if (!exists && mirrorMakers != null) {
mirrorMakers.getListMirrorMaker().add(newMirrorMaker);
} else if (exists == false && mirrorMakers == null) {
mirrorMakers = new ListMirrorMaker();