X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=appc-inbound%2Fappc-interfaces-service%2Fbundle%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Finterfaces%2Fservice%2FexecutorImpl%2FServiceExecutorImpl.java;fp=appc-inbound%2Fappc-interfaces-service%2Fbundle%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fappc%2Finterfaces%2Fservice%2FexecutorImpl%2FServiceExecutorImpl.java;h=405dfcfef168d6faec32bac96fd26e554d0aa711;hb=3baea8e7e5ac5039d27ecd2d504f4ea24034f730;hp=f82402f45dbf2acce5480707dad0f0a19d8cdc8e;hpb=aa350b8ce81033db26dbb88f47c072bd0f32ce86;p=appc.git diff --git a/appc-inbound/appc-interfaces-service/bundle/src/main/java/org/onap/appc/interfaces/service/executorImpl/ServiceExecutorImpl.java b/appc-inbound/appc-interfaces-service/bundle/src/main/java/org/onap/appc/interfaces/service/executorImpl/ServiceExecutorImpl.java index f82402f45..405dfcfef 100644 --- a/appc-inbound/appc-interfaces-service/bundle/src/main/java/org/onap/appc/interfaces/service/executorImpl/ServiceExecutorImpl.java +++ b/appc-inbound/appc-interfaces-service/bundle/src/main/java/org/onap/appc/interfaces/service/executorImpl/ServiceExecutorImpl.java @@ -92,8 +92,8 @@ public class ServiceExecutorImpl { AaiService aaiService = getAaiService(aaiClient); SvcLogicContext ctx = getSvcLogicContext(); - Map params = new HashMap(); - List inProgressVServerIds = new ArrayList(); + Map params = new HashMap<>(); + List inProgressVServerIds = new ArrayList<>(); String currentVnfcVserverId = new String(); String currentRequestVnfcName = scopeOverlap.getCurrentRequest().getActionIdentifiers().getVnfcName(); String currentRequestVServerId = scopeOverlap.getCurrentRequest().getActionIdentifiers().getvServerId(); @@ -101,10 +101,10 @@ public class ServiceExecutorImpl { params.put("vnfId", scopeOverlap.getVnfId()); try { aaiService.getGenericVnfInfo(params, ctx); - int vm_count = Integer.parseInt(ctx.getAttribute("vm-count")); + int vmCount = Integer.parseInt(ctx.getAttribute("vm-count")); for(Request inprogressRequest:inProgressRequests){ if(inprogressRequest.getActionIdentifiers().getVnfcName() != null){ - for (int i = 0; i < vm_count; i++) { + for (int i = 0; i < vmCount; i++) { if (ctx.getAttribute("vm[" + i + "].vnfc-name") != null && ctx.getAttribute("vm[" + i + "].vnfc-name") .equals(inprogressRequest.getActionIdentifiers().getVnfcName())) { String newInProgressVserverId = ctx.getAttribute("vm[" + i + "].vserver-id"); @@ -118,7 +118,7 @@ public class ServiceExecutorImpl { if(inProgVserverIds.getActionIdentifiers().getvServerId() != null) inProgressVServerIds.add(inProgVserverIds.getActionIdentifiers().getvServerId()); if(currentRequestVnfcName != null){ - for (int i = 0; i < vm_count; i++) { + for (int i = 0; i < vmCount; i++) { if (ctx.getAttribute("vm[" + i + "].vnfc-name") != null && ctx.getAttribute("vm[" + i + "].vnfc-name") .equals(currentRequestVnfcName)) { currentVnfcVserverId = ctx.getAttribute("vm[" + i + "].vserver-id");