You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2025/04/12 14:55:42 UTC

(commons-jxpath) 02/06: org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.iteratePointers(String) now uses generics

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 b2e40bafdca3de5f86e7cef01134b6fcecad0a98
Author: Gary D. Gregory <ga...@gmail.com>
AuthorDate: Sat Apr 12 09:56:25 2025 -0400

    org.apache.commons.jxpath.ri.JXPathContextReferenceImpl.iteratePointers(String)
    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 0ab0a20..2b3d637 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -135,6 +135,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action dev="ggregory" type="fix" due-to="Gary Gregory">ExpressionContext.getContextNodeList() now uses generics.</action>
       <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>
       <!-- 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 e28960e..593aab7 100644
--- a/src/main/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
+++ b/src/main/java/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java
@@ -637,7 +637,7 @@ public class JXPathContextReferenceImpl extends JXPathContext {
      * @return Iterator
      */
     @Override
-    public Iterator iteratePointers(final String xpath) {
+    public Iterator<Pointer> iteratePointers(final String xpath) {
         return iteratePointers(xpath, compileExpression(xpath));
     }