> +import org.jclouds.rest.Binder;
> +
> +import com.google.common.collect.ImmutableMap;
> +
> +public class CreateHttpRedirectBinder implements Binder {
> + private final Json json;
> +
> + @Inject
> + CreateHttpRedirectBinder(Json json){
> + this.json = checkNotNull(json, "json");
> + }
> +
> + @SuppressWarnings("unchecked")
> + @Override
> + public <R extends HttpRequest> R bindToRequest(R request, Object arg) {
> + HttpRedirect in = HttpRedirect.class.cast(checkNotNull(arg, "redirect
> to create"));
Convention elsewhere seems to be that the string argument matches the name of
the arg, i.e. `checkNotNull(arg, "arg")`. Is the user expected to know what
"redirect to create" is?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/37/files#r4772775