Merge pull request #865 from juandiana/runtimetypeadapterfactory-docs-fix
Fix registerTypeAdapterFactory method usage
This commit is contained in:
commit
daa92e3fdc
@ -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
Block a user