>        ByteSource byteSource = TestUtils.randomByteSource().slice(0, length);
>        Payload payload = new ByteSourcePayload(byteSource);
> +      
> payload.getContentMetadata().setContentMD5(Hashing.md5().hashBytes(byteSource.read()));

You can hash without buffering via: `byteSource.hash(Hashing.md5())`

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

Reply via email to