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 a2452f694816e977914dffbacb5fcfa41c77ef17 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Mar 17 15:35:48 2025 -0400 Deprecate Constants.Constants() --- src/changes/changes.xml | 1 + src/main/java/org/apache/commons/jxpath/servlet/Constants.java | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 4ab05b9..997e2c4 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -124,6 +124,7 @@ The <action> type attribute can be add,update,fix,remove. <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> <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate InfoSetUtil.InfoSetUtil().</action> + <action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate Constants.Constants().</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/Constants.java b/src/main/java/org/apache/commons/jxpath/servlet/Constants.java index 7e50e7e..d7342a4 100644 --- a/src/main/java/org/apache/commons/jxpath/servlet/Constants.java +++ b/src/main/java/org/apache/commons/jxpath/servlet/Constants.java @@ -42,4 +42,13 @@ public final class Constants { * Attribute name used in page context, requst, session, and servlet context to store the corresponding {@link org.apache.commons.jxpath.JXPathContext}. */ public static final String JXPATH_CONTEXT = "org.apache.commons.jxpath.JXPATH_CONTEXT"; + + /** + * Constructs a new instance. + * @deprecated Will be private in the next major version. + */ + @Deprecated + public Constants() { + // empty + } }