You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/03/18 03:32:58 UTC
(commons-jxpath) 01/10: Deprecate SimplePathInterpreter.SimplePathInterpreter()
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jxpath.git
commit 9bcf4d165a4a8500d33fa09e6a576975ce590895
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Mar 17 15:26:25 2025 -0400
Deprecate SimplePathInterpreter.SimplePathInterpreter()
---
src/changes/changes.xml | 1 +
.../apache/commons/jxpath/ri/axes/SimplePathInterpreter.java | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 3fe9821..8ceb683 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -120,6 +120,7 @@ The <action> type attribute can be add,update,fix,remove.
<action dev="ggregory" type="fix" due-to="Gary Gregory">Bump JXPathException serialVersionUID from 4306409701468017766L to 2L.</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">JXPathContextFactoryConfigurationError now reuses its superclass' Throwable cause.</action>
<action dev="ggregory" type="fix" due-to="Gary Gregory">Bump JXPathContextFactoryConfigurationError serialVersionUID from 1L to 2L.</action>
+ <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate SimplePathInterpreter.SimplePathInterpreter().</action>
<!-- ADD -->
<action issue="JXPATH-123" dev="mbenson" type="add">
XPath function "ends-with" is not implemented (although "starts-with" is).
diff --git a/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java b/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java
index 5ac98fe..38b5c60 100644
--- a/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java
+++ b/src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java
@@ -695,4 +695,14 @@ public class SimplePathInterpreter {
private static NodePointer valuePointer(final NodePointer pointer) {
return pointer == null ? null : pointer.getValuePointer();
}
+
+ /**
+ * Constructs a new instance.
+ *
+ * @deprecated Will be private in the next major version.
+ */
+ @Deprecated
+ public SimplePathInterpreter() {
+ // empty
+ }
}