The method registerTypeAdapterFactory accepts a TypeAdapterFactory instance only.
This commit is contained in:
parent
d4a9eb4e7b
commit
86d88c32cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue