Skip to content

Commit 9bcf4d1

Browse files
committed
Deprecate SimplePathInterpreter.SimplePathInterpreter()
1 parent afeec07 commit 9bcf4d1

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
@@ -120,6 +120,7 @@ The <action> type attribute can be add,update,fix,remove.
120120
<action dev="ggregory" type="fix" due-to="Gary Gregory">Bump JXPathException serialVersionUID from 4306409701468017766L to 2L.</action>
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>
123+
<action dev="ggregory" type="fix" due-to="Gary Gregory">Deprecate SimplePathInterpreter.SimplePathInterpreter().</action>
123124
<!-- ADD -->
124125
<action issue="JXPATH-123" dev="mbenson" type="add">
125126
XPath function "ends-with" is not implemented (although "starts-with" is).

src/main/java/org/apache/commons/jxpath/ri/axes/SimplePathInterpreter.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,4 +695,14 @@ private static String keyFromPredicate(final EvalContext context, final Expressi
695695
private static NodePointer valuePointer(final NodePointer pointer) {
696696
return pointer == null ? null : pointer.getValuePointer();
697697
}
698+
699+
/**
700+
* Constructs a new instance.
701+
*
702+
* @deprecated Will be private in the next major version.
703+
*/
704+
@Deprecated
705+
public SimplePathInterpreter() {
706+
// empty
707+
}
698708
}

0 commit comments

Comments
 (0)