cherry pick from #37211
This commit is contained in:
@ -341,11 +341,12 @@ public class GsonUtils {
|
||||
}
|
||||
});
|
||||
|
||||
private static final GsonBuilder GSON_BUILDER_PRETTY_PRINTING = GSON_BUILDER.setPrettyPrinting();
|
||||
|
||||
// this instance is thread-safe.
|
||||
public static final Gson GSON = GSON_BUILDER.create();
|
||||
|
||||
// ATTN: the order between creating GSON and GSON_PRETTY_PRINTING is very important.
|
||||
private static final GsonBuilder GSON_BUILDER_PRETTY_PRINTING = GSON_BUILDER.setPrettyPrinting();
|
||||
public static final Gson GSON_PRETTY_PRINTING = GSON_BUILDER_PRETTY_PRINTING.create();
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user