fix bug in bvalue iterator
This commit is contained in:
parent
ee8b20097d
commit
0f2e49268e
1 changed files with 4 additions and 3 deletions
|
|
@ -9,11 +9,12 @@ public class BValueIterator implements Iterator<BValue> {
|
|||
}
|
||||
|
||||
public boolean hasNext() {
|
||||
return node != null && node.getNext() != null;
|
||||
return node != null;
|
||||
}
|
||||
|
||||
public BValue next() {
|
||||
node = node.getNext();
|
||||
return node;
|
||||
BValue current = node;
|
||||
node = current.getNext();
|
||||
return current;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue