The method registerTypeAdapterFactory accepts a TypeAdapterFactory instance only.

This commit is contained in:
Juan Andrés Diana 2016-05-25 15:49:39 -03:00
parent d4a9eb4e7b
commit 86d88c32cf
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ import com.google.gson.stream.JsonWriter;
* Finally, register the type adapter factory in your application's GSON builder:
* <pre> {@code
* Gson gson = new GsonBuilder()
* .registerTypeAdapterFactory(Shape.class, shapeAdapterFactory)
* .registerTypeAdapterFactory(shapeAdapterFactory)
* .create();
* }</pre>
* Like {@code GsonBuilder}, this API supports chaining: <pre> {@code