> +package org.jclouds.openstack.swift.utils;
> +
> +import static com.google.common.io.BaseEncoding.base16;
> +
> +/**
> + * Converts ETag header values to byte arrays.
> + *
> + * @author Francis Devereux
> + */
> +public class ETagUtils {
> +   public static byte[] convertETagToHash(String eTag) {
> +      eTag = unquote(eTag);
> +      return base16().lowerCase().decode(eTag);
> +   }
> +
> +   static String unquote(String eTag) {

It's package level for testing, I'll add `@VisibleForTesting` unless I end up 
reverting the `length() >= 2` check and associated test, 
`testNoExceptionUnquotingSingleDQuote()`

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/120/files#r5911481

Reply via email to