> + */
> +@Singleton
> +public class BindAccountMetadataToDeleteToHeaders implements Binder {
> +
> + private final Function<String, String> transformHeaders;
> + private final Function<String, String> transformValues;
> +
> + public BindAccountMetadataToDeleteToHeaders() {
> +
> + transformHeaders = new Function<String, String>() {
> +
> + @Override
> + public String apply(String element) {
> + String inLowercase = element.toLowerCase();
> + return (!inLowercase.startsWith(ACCOUNT_METADATA_PREFIX))
> + ? ACCOUNT_METADATA_PREFIX.toLowerCase() + inLowercase :
> inLowercase;
If `ACCOUNT_METADATA_PREFIX` isn't in lowercase already, declare a local
constant or variable which represents it and use that here?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/17/files#r6383221