diff options
author | surya-huawei <a.u.surya@huawei.com> | 2017-09-26 18:25:40 +0530 |
---|---|---|
committer | SURYA A U <a.u.surya@huawei.com> | 2017-09-27 03:11:18 +0000 |
commit | 3065620fde4e78b2c2003ef1d912c36af0b0b61a (patch) | |
tree | 573f7ca77de43cb353f52d629c071b2ab0d2b41c /adapters/mso-network-adapter/src/main | |
parent | e0081f9b154b44265deb85d9d05b05f8e9719000 (diff) |
Fix major Sonar issues
*Use negation operator instead of converting
boolean operator
*Remove unused imports
These changes are done to increase code readability
Issue-Id: SO-118
Change-Id: I8ec491217520edad95657f8cbb33d20149f64425
Signed-off-by: surya-huawei <a.u.surya@huawei.com>
Diffstat (limited to 'adapters/mso-network-adapter/src/main')
-rw-r--r-- | adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterImpl.java b/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterImpl.java index ccac38a58c..687930673b 100644 --- a/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterImpl.java +++ b/adapters/mso-network-adapter/src/main/java/org/openecomp/mso/adapters/network/MsoNetworkAdapterImpl.java @@ -444,7 +444,7 @@ public class MsoNetworkAdapterImpl implements MsoNetworkAdapter { throw new NetworkException (me); } - if (heatStack != null && !(heatStack.getStatus () == HeatStatus.NOTFOUND)) { + if (heatStack != null && (heatStack.getStatus () != HeatStatus.NOTFOUND)) { // Stack exists. Return success or error depending on input directive if (failIfExists != null && failIfExists) { String error = "CreateNetwork: Stack " + networkName |