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:58 UTC
[camel] 02/02: camel-jsonpath - Remove duplications.
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 543c3a283dbead9b826844e13264d4b1055ab071
Author: yihtserns <si...@yahoo.com>
AuthorDate: Sat Feb 17 13:22:05 2018 +0800
camel-jsonpath - Remove duplications.
---
.../java/org/apache/camel/jsonpath/JsonPathEngine.java | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 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 def309c..41d5bdf 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,19 +67,14 @@ public class JsonPathEngine {
this.writeAsString = writeAsString;
this.headerName = headerName;
+ Configuration.ConfigurationBuilder builder = Configuration.builder();
if (options != null) {
- Configuration.ConfigurationBuilder builder = Configuration.builder().options(options);
- if (suppressExceptions) {
- builder.options(SUPPRESS_EXCEPTIONS);
- }
- this.configuration = builder.build();
- } else {
- Configuration.ConfigurationBuilder builder = Configuration.builder();
- if (suppressExceptions) {
- builder.options(SUPPRESS_EXCEPTIONS);
- }
- this.configuration = builder.build();
+ builder.options(options);
+ }
+ if (suppressExceptions) {
+ builder.options(SUPPRESS_EXCEPTIONS);
}
+ this.configuration = builder.build();
boolean hasSimple = false;
if (allowSimple) {
--
To stop receiving notification emails like this one, please contact
acosentino@apache.org.