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:33:00 UTC
(commons-jxpath) 03/10: Deprecate JXPathServletContexts.JXPathServletContexts()
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 fc16ae21fb268909d836cce75a07844639c15f77
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Mar 17 15:31:31 2025 -0400
Deprecate JXPathServletContexts.JXPathServletContexts()
---
src/changes/changes.xml | 1 +
.../apache/commons/jxpath/servlet/JXPathServletContexts.java | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 8ceb683..b183a2a 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -121,6 +121,7 @@ The <action> type attribute can be add,update,fix,remove.
<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>
+ <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate JXPathServletContexts.JXPathServletContexts().</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/servlet/JXPathServletContexts.java b/src/main/java/org/apache/commons/jxpath/servlet/JXPathServletContexts.java
index 1f3a924..81921e3 100644
--- a/src/main/java/org/apache/commons/jxpath/servlet/JXPathServletContexts.java
+++ b/src/main/java/org/apache/commons/jxpath/servlet/JXPathServletContexts.java
@@ -148,4 +148,14 @@ public final class JXPathServletContexts {
}
return context;
}
+
+ /**
+ * Constructs a new instance.
+ *
+ * @deprecated Will be private in the next major version.
+ */
+ @Deprecated
+ public JXPathServletContexts() {
+ // empty
+ }
}