Skip to content

Commit a2452f6

Browse files
committed
Deprecate Constants.Constants()
1 parent e33386d commit a2452f6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ The <action> type attribute can be add,update,fix,remove.
124124
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate JXPathServletContexts.JXPathServletContexts().</action>
125125
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate JXPathIntrospector.JXPathIntrospector().</action>
126126
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate InfoSetUtil.InfoSetUtil().</action>
127+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate Constants.Constants().</action>
127128
<!-- ADD -->
128129
<action issue="JXPATH-123" dev="mbenson" type="add">
129130
XPath function "ends-with" is not implemented (although "starts-with" is).

src/main/java/org/apache/commons/jxpath/servlet/Constants.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,13 @@ public final class Constants {
4242
* Attribute name used in page context, requst, session, and servlet context to store the corresponding {@link org.apache.commons.jxpath.JXPathContext}.
4343
*/
4444
public static final String JXPATH_CONTEXT = "org.apache.commons.jxpath.JXPATH_CONTEXT";
45+
46+
/**
47+
* Constructs a new instance.
48+
* @deprecated Will be private in the next major version.
49+
*/
50+
@Deprecated
51+
public Constants() {
52+
// empty
53+
}
4554
}

0 commit comments

Comments
 (0)