sonar minor for clumsy 57/30257/1
authorDushyant Singh Thakur <dt00503496@techmahindra.com>
Mon, 5 Feb 2018 11:48:51 +0000 (17:18 +0530)
committerDushyant Singh Thakur <dt00503496@techmahindra.com>
Mon, 5 Feb 2018 11:48:51 +0000 (17:18 +0530)
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>
src/main/java/com/att/nsa/dmaapMMAgent/MirrorMakerAgent.java

index d0237f1..3efbf4f 100644 (file)
@@ -380,7 +380,7 @@ public class MirrorMakerAgent {
                        }
                }
                logger.info("Adding new MirrorMaker:" + newMirrorMaker.name);
                        }
                }
                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();
                        mirrorMakers.getListMirrorMaker().add(newMirrorMaker);
                } else if (exists == false && mirrorMakers == null) {
                        mirrorMakers = new ListMirrorMaker();

© 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