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
The following commit(s) were added to refs/heads/master by this push: new 5487159 Fix generics compiler warnings 5487159 is described below commit 54871590543759f11c8fa03565a73a0bb1eeb6e9 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Nov 16 11:26:15 2024 -0500 Fix generics compiler warnings --- src/main/java/org/apache/commons/jxpath/ri/EvalContext.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/apache/commons/jxpath/ri/EvalContext.java b/src/main/java/org/apache/commons/jxpath/ri/EvalContext.java index 7bcdb0c..49ce884 100644 --- a/src/main/java/org/apache/commons/jxpath/ri/EvalContext.java +++ b/src/main/java/org/apache/commons/jxpath/ri/EvalContext.java @@ -53,7 +53,7 @@ public abstract class EvalContext implements ExpressionContext, Iterator { private boolean startedSetIteration = false; private boolean done = false; private boolean hasPerformedIteratorStep = false; - private Iterator pointerIterator; + private Iterator<Pointer> pointerIterator; /** * Create a new EvalContext. @@ -178,8 +178,8 @@ public abstract class EvalContext implements ExpressionContext, Iterator { * @return whether the Iterator was constructed */ private boolean constructIterator() { - final HashSet set = new HashSet(); - final ArrayList list = new ArrayList(); + final HashSet<Pointer> set = new HashSet<>(); + final ArrayList<Pointer> list = new ArrayList<>(); while (nextSet()) { while (nextNode()) { final NodePointer pointer = getCurrentNodePointer(); @@ -227,7 +227,7 @@ public abstract class EvalContext implements ExpressionContext, Iterator { if (pos != 0) { reset(); } - final List list = new ArrayList(); + final List<Pointer> list = new ArrayList<>(); while (nextNode()) { list.add(getCurrentNodePointer()); }