DefaultCache 320行代码


public Object[] toArray() {
Object[] array = new Object[size()];
Iterator it = iterator();
int i = 0;
while (it.hasNext()) {
array[i] = it.next();
}
return array;
}


这里的array[i]的i没有变动应该一直是0,应该变为i++