From 64d74db8ae69f3dc37feb09df54e53ba0458edb7 Mon Sep 17 00:00:00 2001 From: Michael Evans Date: Fri, 14 Aug 2015 14:08:56 -0400 Subject: [PATCH] Add METHOD target for use with AutoValue's abstract property methods --- .../main/java/com/google/gson/annotations/SerializedName.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gson/src/main/java/com/google/gson/annotations/SerializedName.java b/gson/src/main/java/com/google/gson/annotations/SerializedName.java index 99755eb5f3..c607bd5663 100644 --- a/gson/src/main/java/com/google/gson/annotations/SerializedName.java +++ b/gson/src/main/java/com/google/gson/annotations/SerializedName.java @@ -64,7 +64,7 @@ * @author Joel Leitch */ @Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.FIELD) +@Target({ElementType.FIELD, ElementType.METHOD}) public @interface SerializedName { /**