Skip to content

Commit

Permalink
[okhttp-gson] Make initializer block for GSON builder static #16860
Browse files Browse the repository at this point in the history
Make initializer block for GSON builder static, see #16860
  • Loading branch information
blutorange authored Oct 23, 2023
1 parent cb85358 commit 97cc231
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public class JSON {
return clazz;
}

{
static {
GsonBuilder gsonBuilder = createGson();
gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter);
gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter);
Expand Down

0 comments on commit 97cc231

Please sign in to comment.