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 69adfc1  FastjsonDataFormat: Use the build serializerFeatureList to 
configure FastJson.
69adfc1 is described below

commit 69adfc1b97fa8c50ba6750dd21dfef22373f9ded
Author: Pascal Schumacher <[email protected]>
AuthorDate: Fri Dec 20 17:29:21 2019 +0100

    FastjsonDataFormat: Use the build serializerFeatureList to configure 
FastJson.
    
    Fix Java 8 build by replacing the usage of a Java 11+ method.
---
 .../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..deca161 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(new 
SerializerFeature[0]));
         }
     }
 

Reply via email to