> +         if (attributes.contains(XATTR_CONTENT_TYPE)) {
> +            ByteBuffer buf = 
> ByteBuffer.allocate(view.size(XATTR_CONTENT_TYPE));
> +            view.read(XATTR_CONTENT_TYPE, buf);
> +            contentType = new String(buf.array(), Charsets.UTF_8);
> +         }
> +         if (attributes.contains(XATTR_EXPIRES)) {
> +            ByteBuffer buf = ByteBuffer.allocate(view.size(XATTR_EXPIRES));
> +            view.read(XATTR_EXPIRES, buf);
> +            buf.flip();
> +            expires = new Date(buf.asLongBuffer().get());
> +         }
> +         ImmutableMap.Builder<String, String> userMetadata = 
> ImmutableMap.builder();
> +         for (String attribute : attributes) {
> +            if (!attribute.startsWith(XATTR_USER_METADATA_PREFIX)) {
> +               continue;
> +            }

> As a matter of personal taste I don't think the pre-Java 8 functional stuff 
> is worth the effort.

Fine to leave as-is, then.

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

Reply via email to