Skip to content

Commit

Permalink
Fix generics compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Nov 16, 2024
1 parent 9f91c1b commit 5487159
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/apache/commons/jxpath/ri/EvalContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -178,8 +178,8 @@ public void remove() {
* @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();
Expand Down Expand Up @@ -227,7 +227,7 @@ public List getContextNodeList() {
if (pos != 0) {
reset();
}
final List list = new ArrayList();
final List<Pointer> list = new ArrayList<>();
while (nextNode()) {
list.add(getCurrentNodePointer());
}
Expand Down

0 comments on commit 5487159

Please sign in to comment.