Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,12 @@ public boolean shouldSkipClass(Class<?> clazz) {
}
});

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;
public static final Gson GSON_PRETTY_PRINTING = GSON_BUILDER_PRETTY_PRINTING.create();

/*
Expand Down