>           ImmutableMap.Builder<String, String> userMetadata = 
> ImmutableMap.builder();
> -         for (String attribute : attributes) {
> -            if (!attribute.startsWith(XATTR_USER_METADATA_PREFIX)) {
> -               continue;
> +
> +         if 
> (getFileStore(file.toPath()).supportsFileAttributeView(UserDefinedFileAttributeView.class))
>  {
> +            UserDefinedFileAttributeView view = getFileAttributeView(path, 
> UserDefinedFileAttributeView.class);

I was wondering if there's a way to condense these two lines down into a 
`getViewIfAvailable` method or whatever, but I'm not sure the result is that 
much nicer. Just a style thought, in any case.

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

Reply via email to