From 3b1671dde97a6d564b3f4c3210fbe777dc3aa3d4 Mon Sep 17 00:00:00 2001 From: Roman Mazur Date: Sun, 4 Oct 2015 19:53:02 +0300 Subject: [PATCH] Fix javadoc of SerializedName In #699 the approach was changed but docs were left for the first implementation. --- .../java/com/google/gson/annotations/SerializedName.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 06c0a14c..363b95a3 100644 --- a/gson/src/main/java/com/google/gson/annotations/SerializedName.java +++ b/gson/src/main/java/com/google/gson/annotations/SerializedName.java @@ -81,9 +81,11 @@ import java.lang.annotation.Target; public @interface SerializedName { /** - * @return the desired names of the field when it is deserialized or serialized. All of the specified names will be deserialized from. - * The specified first name is what is used for serialization. + * @return the desired name of the field when it is serialized or deserialized */ String value(); + /** + * @return the alternative names of the field when it is deserialized + */ String[] alternate() default {}; }