8043329: Wrong variable used in java.util.Collections javadoc code
Reviewed-by: lancea, rriggs
This commit is contained in:
parent
020a27b202
commit
f36012af70
@ -2728,7 +2728,7 @@ public class Collections {
|
||||
* Set s2 = m2.keySet(); // Needn't be in synchronized block
|
||||
* ...
|
||||
* synchronized (m) { // Synchronizing on m, not m2 or s2!
|
||||
* Iterator i = s.iterator(); // Must be in synchronized block
|
||||
* Iterator i = s2.iterator(); // Must be in synchronized block
|
||||
* while (i.hasNext())
|
||||
* foo(i.next());
|
||||
* }
|
||||
|
Loading…
Reference in New Issue
Block a user