diff --git a/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java b/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java index 73c7b78a9..f689076af 100755 --- a/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java +++ b/java/src/org/broadinstitute/sting/gatk/refdata/RODIterator.java @@ -30,7 +30,7 @@ public class RODIterator implements Iterator< @Override public boolean hasNext() { return it.hasNext(); } - + @Override public ROD next() { ROD next = it.next(); @@ -41,6 +41,26 @@ public class RODIterator implements Iterator< return next; } +// @Override +// public boolean hasNext() { return current != null || it.hasNext(); } +// +// @Override +// public ROD next() { +// if ( current != null ) { +// ROD prev = current; +// current = null; +// return prev; +// } else { +// ROD next = it.next(); +// if( next != null ) { +// position = next.getLocation().clone(); +// //current = next; +// } +// +// return next; +// } +// } + /** * Returns the current position of this iterator. * @return Current position of the iterator, or null if no position exists.