This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch camel-2.19.x in repository https://gitbox.apache.org/repos/asf/camel.git
commit d8e938d404a4377e6af2f67211976649b9d1fd1e Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Mon Jan 22 09:57:04 2018 +0100 CAMEL-12154: camel-saxon should set parameters on saxon using their type, eg string, boolean, integer etc. Thanks to Niels Bertram for the unit test. --- .../org/apache/camel/component/xquery/XQueryBuilder.java | 14 +++++--------- .../apache/camel/builder/saxon/ParameterDynamicTest.java | 6 +++--- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java b/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java index 28aacc9..6932c93 100644 --- a/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java +++ b/components/camel-saxon/src/main/java/org/apache/camel/component/xquery/XQueryBuilder.java @@ -22,7 +22,6 @@ import java.io.IOException; import java.io.InputStream; import java.io.Reader; import java.io.StringWriter; -import java.math.BigDecimal; import java.math.BigInteger; import java.net.URL; import java.util.Collection; @@ -42,14 +41,6 @@ import javax.xml.transform.stax.StAXSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; -import net.sf.saxon.value.BigDecimalValue; -import net.sf.saxon.value.BooleanValue; -import net.sf.saxon.value.DoubleValue; -import net.sf.saxon.value.FloatValue; -import net.sf.saxon.value.Int64Value; -import net.sf.saxon.value.IntegerValue; -import net.sf.saxon.value.NumericValue; -import net.sf.saxon.value.StringValue; import org.w3c.dom.Node; import net.sf.saxon.Configuration; @@ -62,7 +53,12 @@ import net.sf.saxon.query.DynamicQueryContext; import net.sf.saxon.query.StaticQueryContext; import net.sf.saxon.query.XQueryExpression; import net.sf.saxon.trans.XPathException; +import net.sf.saxon.value.BooleanValue; +import net.sf.saxon.value.DoubleValue; +import net.sf.saxon.value.FloatValue; +import net.sf.saxon.value.Int64Value; import net.sf.saxon.value.ObjectValue; +import net.sf.saxon.value.StringValue; import net.sf.saxon.value.Whitespace; import org.apache.camel.BytesSource; import org.apache.camel.Exchange; diff --git a/components/camel-saxon/src/test/java/org/apache/camel/builder/saxon/ParameterDynamicTest.java b/components/camel-saxon/src/test/java/org/apache/camel/builder/saxon/ParameterDynamicTest.java index c1c62f1..50afdda 100644 --- a/components/camel-saxon/src/test/java/org/apache/camel/builder/saxon/ParameterDynamicTest.java +++ b/components/camel-saxon/src/test/java/org/apache/camel/builder/saxon/ParameterDynamicTest.java @@ -5,9 +5,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * <p> - * http://www.apache.org/licenses/LICENSE-2.0 - * <p> + * + * http://www.apache.org/licenses/LICENSE-2.0 + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- To stop receiving notification emails like this one, please contact davscl...@apache.org.