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:01 UTC
(commons-jxpath) 04/10: Deprecate JXPathIntrospector.JXPathIntrospector()
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 4b079b965890ffc7f40cbfed8da7b95d82f5819b
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Mar 17 15:32:36 2025 -0400
Deprecate JXPathIntrospector.JXPathIntrospector()
---
src/changes/changes.xml | 1 +
.../java/org/apache/commons/jxpath/JXPathIntrospector.java | 10 ++++++++++
2 files changed, 11 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index b183a2a..c8c53b6 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -122,6 +122,7 @@ The <action> type attribute can be add,update,fix,remove.
<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>
+ <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate JXPathIntrospector.JXPathIntrospector().</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/JXPathIntrospector.java b/src/main/java/org/apache/commons/jxpath/JXPathIntrospector.java
index 7f884be..b01dde2 100644
--- a/src/main/java/org/apache/commons/jxpath/JXPathIntrospector.java
+++ b/src/main/java/org/apache/commons/jxpath/JXPathIntrospector.java
@@ -200,4 +200,14 @@ public class JXPathIntrospector {
}
}
}
+
+ /**
+ * Constructs a new instance.
+ *
+ * @deprecated Will be private in the next major version.
+ */
+ @Deprecated
+ public JXPathIntrospector() {
+ // empty
+ }
}