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 688bc8e95d9723dc86b375428ed22f92e7a875dd Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Sat Apr 12 09:58:46 2025 -0400 org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.iteratePointers(String, Expression) now uses generics --- src/changes/changes.xml | 1 + .../java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 2b3d637..e803554 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -136,6 +136,7 @@ The <action> type attribute can be add,update,fix,remove. <action dev="ggregory" type="fix" due-to="Gary Gregory">BasicTypeConverter.unmodifiableCollection(Collection) now uses generics.</action> <action dev="ggregory" type="fix" due-to="Gary Gregory. PMD">Fix PMD AvoidDecimalLiteralsInBigDecimalConstructor in org.apache.commons.jxpath.util.BasicTypeConverter.allocateNumber(Class, double).</action> <action dev="ggregory" type="fix" due-to="Gary Gregory">org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.iteratePointers(String) now uses generics.</action> + <action dev="ggregory" type="fix" due-to="Gary Gregory">org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.iteratePointers(String, Expression) now uses generics.</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/ri/JXPathContextReferenceImpl.java b/src/main/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java index 593aab7..0119d12 100644 --- a/src/main/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java +++ b/src/main/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java @@ -649,7 +649,7 @@ public class JXPathContextReferenceImpl extends JXPathContext { * @param expr compiled Expression * @return Iterator */ - public Iterator iteratePointers(final String xpath, final Expression expr) { + public Iterator<Pointer> iteratePointers(final String xpath, final Expression expr) { return expr.iteratePointers(getEvalContext()); }