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 84ab2cab689b51314efc9eafb8df5191edcb256d Author: Gary D. Gregory <[email protected]> AuthorDate: Sun Mar 16 19:55:27 2025 -0400 Use generics internally --- .../org/apache/commons/jxpath/ri/model/dom/DOMAttributeIterator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributeIterator.java b/src/main/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributeIterator.java index 2842ea0..954261b 100644 --- a/src/main/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributeIterator.java +++ b/src/main/java/org/apache/commons/jxpath/ri/model/dom/DOMAttributeIterator.java @@ -36,7 +36,7 @@ public class DOMAttributeIterator implements NodeIterator { private final NodePointer parent; private final QName name; - private final List attributes; + private final List<Attr> attributes; private int position = 0; /** @@ -48,7 +48,7 @@ public class DOMAttributeIterator implements NodeIterator { public DOMAttributeIterator(final NodePointer parent, final QName name) { this.parent = parent; this.name = name; - attributes = new ArrayList(); + attributes = new ArrayList<>(); final Node node = (Node) parent.getNode(); if (node.getNodeType() == Node.ELEMENT_NODE) { final String lname = name.getName();
