You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2018/01/10 17:08:50 UTC

[camel] branch master updated: camel-jsonpath - As commented by @yihtserns we should not use the internal apis of jsonpath to get the default configuration.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9e58df3  camel-jsonpath - As commented by @yihtserns we should not use the internal apis of jsonpath to get the default configuration.
9e58df3 is described below

commit 9e58df3c602f2502333ca0760e1a0baee1c5a909
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jan 10 18:08:11 2018 +0100

    camel-jsonpath - As commented by @yihtserns we should not use the internal apis of jsonpath to get the default configuration.
---
 .../src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java       | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java b/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java
index d7be041..90ff3e8 100644
--- a/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java
+++ b/components/camel-jsonpath/src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java
@@ -28,10 +28,8 @@ import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
 import com.jayway.jsonpath.Configuration;
-import com.jayway.jsonpath.Configuration.Defaults;
 import com.jayway.jsonpath.JsonPath;
 import com.jayway.jsonpath.Option;
-import com.jayway.jsonpath.internal.DefaultsImpl;
 import org.apache.camel.CamelExchangeException;
 import org.apache.camel.Exchange;
 import org.apache.camel.Expression;
@@ -69,7 +67,7 @@ public class JsonPathEngine {
         this.writeAsString = writeAsString;
         this.headerName = headerName;
 
-        Defaults defaults = DefaultsImpl.INSTANCE;
+        Configuration defaults = Configuration.defaultConfiguration();
         if (options != null) {
             Configuration.ConfigurationBuilder builder = Configuration.builder().jsonProvider(defaults.jsonProvider()).options(options);
             if (suppressExceptions) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@camel.apache.org" <co...@camel.apache.org>'].