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 Sun, 02 Nov 2014 07:10:02 GMT
>           for (Annotation annotation : f.getAnnotations()) {
>              if (annotationToNameExtractor.containsKey(annotation.annotationType()))
{
>                 return annotationToNameExtractor.get(annotation.annotationType()).apply(annotation);
>              }
>           }
> -         return fallback.translateName(f);
> +         return null;

[minor] Curious whether [this](http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/FieldNamingStrategy.html)
is `nullable` or whether we should throw an exception here?

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