왜 이것이 반복적으로 루핑되는지 알 수 없습니다.Java 반복기 무한 루프
public void DLCCheck(IconSet iconSet) {
Log.d(TAG, "Got dlc check. Looking to see if we need to remove any notes from the current list.");
int foundCount = 0;
for(Iterator<Item> i = mItemList.iterator(); i.hasNext();) {
if(i instanceof NoteItem && ((NoteItem) i).getIconSet() == iconSet) {
i.remove();
foundCount++;
}
}
Log.d(TAG, "Finished searching. Found " + foundCount + "notes in the current list to delete.");
//notifyDataSetChanged();
//EventBus.getDefault().post(new MoveNoteListOut());
}
hasNext가 false를 반환 할 때 반복을 중지하면 안됩니까? 이 목록에있는 항목은 6 개 뿐이지 만 계속 반복됩니다.
이 실제로 도움이되었다. 왜이 주제에서 벗어난거야 ?? – dan