We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a7082a commit f593525Copy full SHA for f593525
src/org/javacore/collection/util/IterAndListIterT.java
@@ -35,7 +35,10 @@ public static void main(String[] args) {
35
36
/**
37
* 并发修改异常产生。
38
- * 原因:Iterator(Object obj = it.next()) 会检查HashMap的size,
+ * 原因:Iterator(Object obj = it.next())里会用checkForComodification检查HashMap的size
39
+ * if (modCount != expectedModCount) {
40
+ * throw new ConcurrentModificationException();
41
+ * }
42
* size发生变化,抛出错误ConcurrentModificationException。
43
*/
44
@SuppressWarnings({ "unchecked", "rawtypes" })
0 commit comments