aboutsummaryrefslogtreecommitdiffstats
path: root/asdc-controller/src
diff options
context:
space:
mode:
authorRob Daugherty <rd472p@att.com>2018-03-07 18:51:28 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-07 18:51:28 +0000
commitbcfb7e24ab050bd530e9aa2c9557386a4b9f82f5 (patch)
tree6db120e870f9627acf7bdb24362f447d6411d95d /asdc-controller/src
parent242125e7ed47ba9631e7d9c261a26d627db5c3f8 (diff)
parent0fa31fe9f32c8acb4fadfce627196e748b712106 (diff)
Merge "Swap indexOf with contains"
Diffstat (limited to 'asdc-controller/src')
-rw-r--r--asdc-controller/src/main/java/org/openecomp/mso/asdc/installer/heat/ToscaResourceInstaller.java2
1 files changed, 1 insertions, 1 deletions
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("."));
}