jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-750 Revert customizing FieldNamingStrategy in favor of tighter contract on @SerializedNames. (#596)
Date Mon, 03 Nov 2014 08:25:04 GMT
>           for (Annotation annotation : f.getAnnotations()) {
>              if (annotationToNameExtractor.containsKey(annotation.annotationType()))
{
>                 return annotationToNameExtractor.get(annotation.annotationType()).apply(annotation);
>              }
>           }
> -         return fallback.translateName(f);
> +         return null;

> Contract in gson says return null if you don't know the name.

Thanks for clarifying!

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/596/files#r19721983
Mime
View raw message