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/02/17 10:57:57 UTC
[camel] 01/02: camel-jsonpath - It is not necessary to explicitly
set default jsonProvider, as ConfigurationBuilder.build will do that anyway.
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 2e0410fe26da48c90d165dab17bfc91c00b3d539
Author: yihtserns <si...@yahoo.com>
AuthorDate: Sat Feb 17 13:13:30 2018 +0800
camel-jsonpath - It is not necessary to explicitly set default jsonProvider, as ConfigurationBuilder.build will do that anyway.
---
.../src/main/java/org/apache/camel/jsonpath/JsonPathEngine.java | 5 ++---
1 file changed, 2 insertions(+), 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 90ff3e8..def309c 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
@@ -67,15 +67,14 @@ public class JsonPathEngine {
this.writeAsString = writeAsString;
this.headerName = headerName;
- Configuration defaults = Configuration.defaultConfiguration();
if (options != null) {
- Configuration.ConfigurationBuilder builder = Configuration.builder().jsonProvider(defaults.jsonProvider()).options(options);
+ Configuration.ConfigurationBuilder builder = Configuration.builder().options(options);
if (suppressExceptions) {
builder.options(SUPPRESS_EXCEPTIONS);
}
this.configuration = builder.build();
} else {
- Configuration.ConfigurationBuilder builder = Configuration.builder().jsonProvider(defaults.jsonProvider());
+ Configuration.ConfigurationBuilder builder = Configuration.builder();
if (suppressExceptions) {
builder.options(SUPPRESS_EXCEPTIONS);
}
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.