From: Sudarshan Kumar Date: Fri, 5 Jul 2019 10:37:36 +0000 (+0530) Subject: Sonar Fix - String comparison X-Git-Tag: 1.6.0~22 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b1d55dd69c4a1b808b2a2ab995172e4bfdabfaea;hp=6141af73db44c2b983d6d57bf44790a4b881ac02;p=appc.git Sonar Fix - String comparison Sonar Fix - String comparison Issue-ID: APPC-1629 Change-Id: I8ea38dfaf629c2be624552a1cf0b0f0e877117cb Signed-off-by: Sudarshan Kumar --- diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/CreateSnapshot.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/CreateSnapshot.java index 909f31fd1..ee25ad01c 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/CreateSnapshot.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/CreateSnapshot.java @@ -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); }