From dae4b37c7f067becbae331ef8bff60235c53a61c Mon Sep 17 00:00:00 2001 From: kurczews Date: Tue, 16 Jan 2018 11:49:07 +0100 Subject: Fix some sonar issues Fix sonar issues assigned to me Change-Id: I926c011fd9d2c4f5628c4151e8c50a8fb5f3ea86 Issue-ID: APPC-412 Signed-off-by: kurczews --- .../appc/adapter/iaas/provider/operation/impl/EvacuateServer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main') diff --git a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.java b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.java index 3778dded8..73e468846 100644 --- a/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.java +++ b/appc-adapters/appc-iaas-adapter/appc-iaas-adapter-bundle/src/main/java/org/onap/appc/adapter/iaas/provider/operation/impl/EvacuateServer.java @@ -225,7 +225,7 @@ public class EvacuateServer extends ProviderServerOperation { // If a snapshot exists, do a rebuild to apply the latest snapshot to the evacuated server. // This is the default behavior unless the optional parameter is set to FALSE. - if (rebuildVm == null || !rebuildVm.equalsIgnoreCase("false")) { + if (rebuildVm == null || !"false".equalsIgnoreCase(rebuildVm)) { List snapshots = server.getSnapshots(); if (snapshots == null || snapshots.isEmpty()) { logger.debug("No snapshots available - skipping rebuild after evacuate"); @@ -352,4 +352,4 @@ public class EvacuateServer extends ProviderServerOperation { public void setProvideAdapterRef(ProviderAdapterImpl pai) { paImpl = pai; } -} +} \ No newline at end of file -- cgit 1.2.3-korg