andreaturli commented on this pull request.
> +import com.google.common.collect.Iterables; + +import javax.inject.Singleton; +import java.util.Arrays; + +import static com.google.common.base.Preconditions.checkArgument; +import static com.google.common.base.Preconditions.checkNotNull; + +/** + * Takes an array of string and return a "["s1", "s2", … "sN"]" + */ +@Singleton +public class ArrayToCommaSeparatedString implements Function<Object, String> { + @Override + public String apply(Object input) { + checkArgument(checkNotNull(input, "input") instanceof String[], "This function is only valid for array of Strings!"); Agreed but I think it is because of `@ParamParser` annotation -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/441#discussion_r206304705