> + }
> +
> + //If there is one hash left, add it too.
> + if (q.size() == 1)
> + result.offer(q.poll());
> + return result;
> + }
> +
> + /**
> + * Build a TreeHash based on a map of hashed chunks.
> + *
> + * @return A String containing the calculated TreeHash.
> + */
> + public static String buildTreeHashFromMap(Map<Integer, String> map) {
> + //Sort the Map with the hash parts.
> + TreeMap<Integer, String> sortedMap = Maps.newTreeMap();
`SortedMap<Integer, String> sortedMap = ImmutableSortedMap.copyOf(map);`
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-aws/pull/9/files#r13771430