Javadoc for TypeAdapterFactory in @JsonAdapter.

This commit is contained in:
Jesse Wilson 2014-08-05 15:00:15 +00:00
parent 117d8ea68f
commit 6a3e83a741

View File

@ -76,6 +76,10 @@ import java.lang.annotation.Target;
* annotations take precedence over {@code GsonBuilder}-registered type
* adapters, which in turn take precedence over annotated types.
*
* <p>The class referenced by this annotation must be either a {@link
* TypeAdapter} or a {@link TypeAdapterFactory}. Using the factory interface
* makes it possible to delegate to the enclosing {@code Gson} instance.
*
* @since 2.3
*
* @author Inderjeet Singh