> +
> + snapshotBase = apply((SnapshotInteranl)
> context.deserialize(jsonElement, SnapshotInteranl.class));
> +
> + Snapshot.Builder result =
> Snapshot.builder().fromSnapshot(snapshotBase);
> + SnapshotExtendedAttributes extendedAttributes =
> context.deserialize(jsonElement, SnapshotExtendedAttributes.class);
> + if (!Objects.equal(extendedAttributes,
> SnapshotExtendedAttributes.builder().build())) {
> + result.extendedAttributes(extendedAttributes);
> + }
> + return result.build();
> + }
> +
> + public Snapshot apply(Snapshot in) {
> + return in.toBuilder().build();
> + }
> +
> + private static class SnapshotInteranl extends Snapshot {
[minor] This is probably meant to be "Internal" (typo) - we can clean this up
during the merge.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/562/files#r19063483