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;
/**
* 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) {
if (CollectionUtils.isEmpty(allowedInstanceResourceType)) {
return Collections.emptyList();
}
- return allowedInstanceResourceType;
+ return allowedInstanceResourceType.stream().collect(Collectors.toList());
}
}