Issue-ID: SDC-3866
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: I45d4c9cd270ad37bdf5ac6dc43be5c54848b123c
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Collections;
import java.util.List;
import java.util.Map;
+import java.util.stream.Collectors;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.openecomp.sdc.be.config.ConfigurationManager;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.collections4.MapUtils;
import org.openecomp.sdc.be.config.ConfigurationManager;
/**
* Gets the list of allowed component instances for a service of the given model.
*
/**
* Gets the list of allowed component instances for a service of the given model.
*
- * @param model the model
+ * @param model the model
* @return the list of allowed component instances
*/
public List<String> getServiceAllowedList(final String modelName) {
* @return the list of allowed component instances
*/
public List<String> getServiceAllowedList(final String modelName) {
if (CollectionUtils.isEmpty(allowedInstanceResourceType)) {
return Collections.emptyList();
}
if (CollectionUtils.isEmpty(allowedInstanceResourceType)) {
return Collections.emptyList();
}
- return allowedInstanceResourceType;
+ return allowedInstanceResourceType.stream().collect(Collectors.toList());