You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2018/12/05 10:22:28 UTC

[camel] 20/43: Probably a typo, the builder was configured but always resetted by a new one (#2632)

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

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

commit e4b9d0e5ffc18e0364f43b04584bf8228fb60f0c
Author: Romain Manni-Bucau <rm...@gmail.com>
AuthorDate: Fri Nov 23 15:20:20 2018 +0100

    Probably a typo, the builder was configured but always resetted by a new one (#2632)
---
 .../main/java/org/apache/camel/component/johnzon/JohnzonDataFormat.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-johnzon/src/main/java/org/apache/camel/component/johnzon/JohnzonDataFormat.java b/components/camel-johnzon/src/main/java/org/apache/camel/component/johnzon/JohnzonDataFormat.java
index a8fe932..f4e4951 100644
--- a/components/camel-johnzon/src/main/java/org/apache/camel/component/johnzon/JohnzonDataFormat.java
+++ b/components/camel-johnzon/src/main/java/org/apache/camel/component/johnzon/JohnzonDataFormat.java
@@ -207,7 +207,7 @@ public class JohnzonDataFormat extends ServiceSupport implements DataFormat, Dat
             if (ObjectHelper.isNotEmpty(attributeOrder)) {
                 builder.setAttributeOrder(attributeOrder);
             }
-            objectMapper = new MapperBuilder().build();
+            objectMapper = builder.build();
         }
     }