mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-18 19:57:06 +00:00
* [okhttp-gson] Make initializer block for GSON builder static #16860 Make initializer block for GSON builder static, see #16860 * update sapmles --------- Co-authored-by: Andre Wachsmuth <awa@xima.de>
This commit is contained in:
@@ -93,7 +93,7 @@ public class JSON {
|
||||
return clazz;
|
||||
}
|
||||
|
||||
{
|
||||
static {
|
||||
GsonBuilder gsonBuilder = createGson();
|
||||
gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter);
|
||||
gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter);
|
||||
|
||||
Reference in New Issue
Block a user