Sonar Fix - String comparison 39/90939/4
authorSudarshan Kumar <sudars19@in.ibm.com>
Fri, 5 Jul 2019 10:37:36 +0000 (16:07 +0530)
committerPatrick Brady <patrick.brady@att.com>
Thu, 11 Jul 2019 19:26:35 +0000 (19:26 +0000)
Sonar Fix - String comparison

Issue-ID: APPC-1629
Change-Id: I8ea38dfaf629c2be624552a1cf0b0f0e877117cb
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/CreateSnapshot.java

index 909f31f..ee25ad0 100644 (file)
@@ -6,7 +6,7 @@
  * ================================================================================
  * Copyright (C) 2017 Amdocs
  * =============================================================================
- * Modifications Copyright (C) 2018 IBM.
+ * Modifications Copyright (C) 2018-2019 IBM.
  * ================================================================================
  * Modifications (C) 2019 Ericsson
  * =============================================================================
@@ -178,7 +178,7 @@ public class CreateSnapshot extends ProviderServerOperation {
                 }
                 // Always perform Hypervisor check
                 // unless the skip is set to true
-                if (skipHypervisorCheck == null || (!skipHypervisorCheck.equalsIgnoreCase("true"))) {
+                if (skipHypervisorCheck == null || (!"true".equalsIgnoreCase(skipHypervisorCheck))) {
                     // Check of the Hypervisor for the VM Server is UP and reachable
                     checkHypervisor(server);
                 }