> @@ -201,6 +206,18 @@ public String toString() {
> }
> }
>
> + public static class ImmutableMapDeserializer implements
> JsonDeserializer<ImmutableMap<?,?>> {
> + @Override
> + public ImmutableMap<?,?> deserialize(final JsonElement json, final
> Type type,
> + final JsonDeserializationContext context) throws
> JsonParseException
> + {
> + final Type type2 =
> + ParameterizedTypeImpl.make(Map.class, ((ParameterizedType)
> type).getActualTypeArguments(), null);
> + final Map<?,?> map = context.deserialize(json, type2);
> + return ImmutableMap.copyOf(map);
What is happening where we need an immutable map currently? We take the current
result from the deserialization and copy it into a map?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/455/files#r15472187