From 0fa31fe9f32c8acb4fadfce627196e748b712106 Mon Sep 17 00:00:00 2001 From: Munir Ahmad Date: Fri, 2 Mar 2018 20:06:26 -0500 Subject: Swap indexOf with contains Change-Id: I609d307acf504ea7ff25ed3327a3d4e0e4686755 Issue-ID: SO-437 Signed-off-by: Munir Ahmad --- .../org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asdc-controller/src/main') diff --git a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java index f22debce1e..e0f338e27c 100644 --- a/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java +++ b/asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java @@ -878,7 +878,7 @@ public class ToscaResourceInstaller {// implements IVfResourceInstaller { String vfModuleModelUUID = vfModuleData.getVfModuleModelUUID(); - if(vfModuleModelUUID != null && vfModuleModelUUID.indexOf(".") > -1){ + if(vfModuleModelUUID != null && vfModuleModelUUID.contains(".")){ vfModuleModelUUID = vfModuleModelUUID.substring(0, vfModuleModelUUID.indexOf(".")); } -- cgit 1.2.3-korg