From 437c268fede8a20a0d344dd1145979b7108bc34b Mon Sep 17 00:00:00 2001 From: Gary Wu Date: Mon, 10 Apr 2017 16:29:44 -0700 Subject: Simplify InfraUtils Change-Id: I23659102feccaa5bf97194e052a6b28cd1e7705f Signed-off-by: Gary Wu --- .../openecomp/mso/apihandlerinfra/InfraUtils.java | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'mso-api-handlers/mso-api-handler-infra/src/main') diff --git a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/InfraUtils.java b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/InfraUtils.java index 37cbb4de66..7088a33b16 100644 --- a/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/InfraUtils.java +++ b/mso-api-handlers/mso-api-handler-infra/src/main/java/org/openecomp/mso/apihandlerinfra/InfraUtils.java @@ -22,6 +22,8 @@ package org.openecomp.mso.apihandlerinfra; +import java.util.Arrays; + import org.openecomp.mso.properties.MsoJavaProperties; public class InfraUtils { @@ -29,27 +31,12 @@ public class InfraUtils { // Check for allowable actions String actionsPropertyName = requestType + "." + version + ".ApiAllowableActions"; String allowableActions = props.getProperty(actionsPropertyName, null); - boolean actionAllowed = false; - if (allowableActions != null) { - String allowableActionsList[] = allowableActions.split(","); - for (int i=0; i