blob: 0867405d8196f14361ad42e77ed4322ab1e8e0da [file] [log] [blame]
package com.siyeh.igtest.bugs;
import java.util.Iterator;
import java.util.NoSuchElementException;
import java.util.ArrayList;
public class IteratorTest implements Iterator{
public void remove() {
}
public boolean hasNext() {
Iterator foo = new ArrayList().iterator();
this.next();
return false;
}
public Object next() {
throw new NoSuchElementException();
}
}