> + FN2 = new Function<String, String>() {
> +
> + @Override
> + public String apply(String element) {
> + return "";
> + }
> + };
> + }
> +
> + @SuppressWarnings("unchecked")
> + @Override
> + public <R extends HttpRequest> R bindToRequest(R request, Object input) {
> + checkArgument(checkNotNull(input, "input") instanceof Map<?,?>, "this
> binder is only valid for Maps!");
> + checkNotNull(request, "request");
> +
> + Map<String, String> userMetadata = Maps2.transformKeys((Map<String,
> String>) input, FN);
Why the need for the cast? `Maps2.<String, String, String>transformKeys(input,
FN)`? But is Java not able to figure that out itself?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/17/files#r5397918