Fix javadoc of SerializedName

In #699 the approach was changed but docs were left for the first implementation.
This commit is contained in:
Roman Mazur 2015-10-04 19:53:02 +03:00 committed by Roman Mazur
parent 095ebbd5a1
commit 3b1671dde9
1 changed files with 4 additions and 2 deletions

View File

@ -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 {};
}