”确实如此。 ConcurrentModificationException 的“Concurrent”并不是指“并发”,而是指“ 在同一个时间段内发生了修改 ”,哪怕这些修改发生在同一个线程里,只要迭代器不知道,它就会认为集合被“并发修改”了。
Some results have been hidden because they may be inaccessible to you
Show inaccessible resultsSome results have been hidden because they may be inaccessible to you
Show inaccessible results