This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new a2775d9b8a9 [fix](gson) Fix gson Pretty Printing (#38886)
a2775d9b8a9 is described below

commit a2775d9b8a9ba47286ca0668f022a534ab6d9124
Author: walter <[email protected]>
AuthorDate: Tue Aug 6 07:08:34 2024 +0800

    [fix](gson) Fix gson Pretty Printing (#38886)
    
    This was introduced in #37211
---
 fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java 
b/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
index 0a6043ac685..f29dbaceab2 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/persist/gson/GsonUtils.java
@@ -646,7 +646,7 @@ public class GsonUtils {
     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;
+    private static final GsonBuilder GSON_BUILDER_PRETTY_PRINTING = 
GSON_BUILDER.setPrettyPrinting();
     public static final Gson GSON_PRETTY_PRINTING = 
GSON_BUILDER_PRETTY_PRINTING.create();
 
     /*


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to