>
> bind(GsonModule.DateAdapter.class).to(GsonModule.Iso8601DateAdapter.class);
> }
> -
> - @Provides
> - @Singleton
> - public Map<Type, Object> provideCustomAdapterBindings() {
> - return new ImmutableMap.Builder<Type, Object>()
> - .put(Container.class, new ContainerTypeAdapter())
> - .build();
> - }
> -
> - protected static class ContainerTypeAdapter implements
> JsonDeserializer<Container> {
> -
> - @Override
> - public Container deserialize(JsonElement json, Type typeOfT,
> JsonDeserializationContext context) throws
> - JsonParseException {
> - Gson gson = new GsonBuilder().serializeNulls().create();
https://github.com/adriancole/jclouds/commit/49d7cd444b59f41ee8901208b3ad5156767b80f5
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/102/files#r19383089