[okhttp-gson] Make initializer block for GSON builder static #16860 (#16892)

* [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:
Andre Wachsmuth
2024-02-28 04:04:44 +00:00
committed by GitHub
parent df8851d627
commit 8ca914d64f
13 changed files with 13 additions and 13 deletions

View File

@@ -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);