> @@ -209,4 +210,67 @@ public void testDeserializeEnumWithParserAndBadValue() {
> EnumInsideWithParser.Test.UNRECOGNIZED);
> }
>
> + private abstract static class SpinalCasedType {
> + abstract String id();
> +
> + abstract String contentType();
> +
> + // Currently, this only works for deserialization. Need to set a
> naming policy for serialization!
> + @SerializedNames({ "id", "content-type" })
> + private static SpinalCasedType create(String id, String contentType) {
> + return new AutoValue_SpinalCasedType(id, contentType);
> + }
> + }
> +
> + public void spinalCaseWithSerializedNames() {
Thanks! :+1:
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/586/files#r19382238