diff options
author | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-02-05 17:18:51 +0530 |
---|---|---|
committer | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-02-05 17:18:51 +0530 |
commit | c4999261363c42758b50b31d33f910c5344fb339 (patch) | |
tree | 09eef99553b274c54e3da1e7631e5bff23eedadf /src/main/java/com | |
parent | adf340af7852891c7c89b146cf9a272e57ddd825 (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/main/java/com')
-rw-r--r-- | src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java | 2 |
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(); |