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

pascalschumacher pushed a commit to branch camel-3.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.0.x by this push:
     new e16e519  FastjsonDataFormat: Use the build serializerFeatureList to 
configure FastJson.
e16e519 is described below

commit e16e519d8f49140660882eca1a6dc314ce0cb587
Author: Pascal Schumacher <[email protected]>
AuthorDate: Fri Dec 20 15:22:11 2019 +0100

    FastjsonDataFormat: Use the build serializerFeatureList to configure 
FastJson.
---
 .../java/org/apache/camel/component/fastjson/FastjsonDataFormat.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/components/camel-fastjson/src/main/java/org/apache/camel/component/fastjson/FastjsonDataFormat.java
 
b/components/camel-fastjson/src/main/java/org/apache/camel/component/fastjson/FastjsonDataFormat.java
index ebff729..92de516 100644
--- 
a/components/camel-fastjson/src/main/java/org/apache/camel/component/fastjson/FastjsonDataFormat.java
+++ 
b/components/camel-fastjson/src/main/java/org/apache/camel/component/fastjson/FastjsonDataFormat.java
@@ -120,7 +120,7 @@ public class FastjsonDataFormat extends ServiceSupport 
implements DataFormat, Da
                 
serializerFeatureList.add(SerializerFeature.WriteDateUseDateFormat);
                 config.setDateFormat(this.dateFormatPattern);
             }
-
+            
config.setSerializerFeatures(serializerFeatureList.toArray(SerializerFeature[]::new));
         }
     }
 

Reply via email to