This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new 4a02e94 Add deprecation as these methods are deleted in camel 3
4a02e94 is described below
commit 4a02e94a866a16a5f64bb77b034fdf126a6db27f
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jan 30 18:04:42 2019 +0100
Add deprecation as these methods are deleted in camel 3
---
camel-core/src/main/java/org/apache/camel/builder/xml/Namespaces.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/camel-core/src/main/java/org/apache/camel/builder/xml/Namespaces.java
b/camel-core/src/main/java/org/apache/camel/builder/xml/Namespaces.java
index 359c613..b5e04b9 100644
--- a/camel-core/src/main/java/org/apache/camel/builder/xml/Namespaces.java
+++ b/camel-core/src/main/java/org/apache/camel/builder/xml/Namespaces.java
@@ -97,6 +97,7 @@ public class Namespaces {
/**
* Creates the XPath expression using the current namespace context
*/
+ @Deprecated
public XPathExpression xpath(String expression) {
XPathExpression answer = new XPathExpression(expression);
configure(answer);
@@ -106,6 +107,7 @@ public class Namespaces {
/**
* Creates the XPath expression using the current namespace context
*/
+ @Deprecated
public XPathExpression xpath(String expression, Class<?> resultType) {
XPathExpression answer = xpath(expression);
answer.setResultType(resultType);
@@ -115,6 +117,7 @@ public class Namespaces {
/**
* Creates the XQuery expression using the current namespace context
*/
+ @Deprecated
public XQueryExpression xquery(String expression) {
XQueryExpression answer = new XQueryExpression(expression);
configure(answer);
@@ -125,6 +128,7 @@ public class Namespaces {
* Creates the XQuery expression using the current namespace context
* and the given expected return type
*/
+ @Deprecated
public XQueryExpression xquery(String expression, Class<?> resultType) {
XQueryExpression answer = new XQueryExpression(expression);
answer.setResultType(resultType);