> +import com.google.common.base.Strings;
> +
> +public abstract class BaseProfitBricksRequestBinder<T> implements MapBinder {
> +
> + protected final StringBuilder requestBuilder;
> + protected String paramName;
> +
> + public BaseProfitBricksRequestBinder() {
> + this.requestBuilder = new StringBuilder(255);
> + }
> +
> + @Override
> + public <R extends HttpRequest> R bindToRequest(R request, Map<String,
> Object> postParams) {
> + checkNotNull(request, "request");
> +
> + checkNotNull(paramName, "Initialize 'paramName' in constructor");
Move this check to the constructor that accepts the `paramName` field, once it
is present.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/72/files#r22133510