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
The following commit(s) were added to refs/heads/master by this push: new 53296d1 Camel-Xpath: Fixed CS 53296d1 is described below commit 53296d1f1d1e1832e9f2775542bcaf4bcc8348cf Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Wed Feb 12 08:57:34 2020 +0100 Camel-Xpath: Fixed CS --- .../apache/camel/language/xpath/XPathBuilder.java | 42 +++++++++++++--------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathBuilder.java b/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathBuilder.java index 2d21048..249c6a9 100644 --- a/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathBuilder.java +++ b/components/camel-xpath/src/main/java/org/apache/camel/language/xpath/XPathBuilder.java @@ -176,23 +176,31 @@ public class XPathBuilder extends ServiceSupport implements CamelContextAware, E throw new IllegalStateException("Can only configure our own instance !"); } switch (ignoreCase ? name.toLowerCase() : name) { - case "documenttype": - case "documentType": setDocumentType(PropertyConfigurerSupport.property(camelContext, Class.class, value)); return true; - case "resulttype": - case "resultType": setResultType(PropertyConfigurerSupport.property(camelContext, Class.class, value)); return true; - case "usesaxon": - case "useSaxon": setUseSaxon(PropertyConfigurerSupport.property(camelContext, Boolean.class, value)); return true; - case "xpathfactory": - case "xPathFactory": setXPathFactory(PropertyConfigurerSupport.property(camelContext, XPathFactory.class, value)); return true; - case "objectmodeluri": - case "objectModelUri": setObjectModelUri(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true; - case "threadsafety": - case "threadSafety": setThreadSafety(PropertyConfigurerSupport.property(camelContext, Boolean.class, value)); return true; - case "lognamespaces": - case "logNamespaces": setLogNamespaces(PropertyConfigurerSupport.property(camelContext, Boolean.class, value)); return true; - case "headername": - case "headerName": setHeaderName(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true; - default: return false; + case "documenttype": + case "documentType": + setDocumentType(PropertyConfigurerSupport.property(camelContext, Class.class, value)); return true; + case "resulttype": + case "resultType": + setResultType(PropertyConfigurerSupport.property(camelContext, Class.class, value)); return true; + case "usesaxon": + case "useSaxon": + setUseSaxon(PropertyConfigurerSupport.property(camelContext, Boolean.class, value)); return true; + case "xpathfactory": + case "xPathFactory": + setXPathFactory(PropertyConfigurerSupport.property(camelContext, XPathFactory.class, value)); return true; + case "objectmodeluri": + case "objectModelUri": + setObjectModelUri(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true; + case "threadsafety": + case "threadSafety": + setThreadSafety(PropertyConfigurerSupport.property(camelContext, Boolean.class, value)); return true; + case "lognamespaces": + case "logNamespaces": + setLogNamespaces(PropertyConfigurerSupport.property(camelContext, Boolean.class, value)); return true; + case "headername": + case "headerName": + setHeaderName(PropertyConfigurerSupport.property(camelContext, String.class, value)); return true; + default: return false; } }