Skip to content

Commit fc16ae2

Browse files
committed
Deprecate JXPathServletContexts.JXPathServletContexts()
1 parent 529c204 commit fc16ae2

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ The <action> type attribute can be add,update,fix,remove.
121121
<action dev="ggregory" type="fix" due-to="Gary Gregory">JXPathContextFactoryConfigurationError now reuses its superclass' Throwable cause.</action>
122122
<action dev="ggregory" type="fix" due-to="Gary Gregory">Bump JXPathContextFactoryConfigurationError serialVersionUID from 1L to 2L.</action>
123123
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate SimplePathInterpreter.SimplePathInterpreter().</action>
124+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate JXPathServletContexts.JXPathServletContexts().</action>
124125
<!-- ADD -->
125126
<action issue="JXPATH-123" dev="mbenson" type="add">
126127
XPath function "ends-with" is not implemented (although "starts-with" is).

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,14 @@ public static JXPathContext getSessionContext(final HttpSession session, final S
148148
}
149149
return context;
150150
}
151+
152+
/**
153+
* Constructs a new instance.
154+
*
155+
* @deprecated Will be private in the next major version.
156+
*/
157+
@Deprecated
158+
public JXPathServletContexts() {
159+
// empty
160+
}
151161
}

0 commit comments

Comments
 (0)