8303214: Typo in java.util.Collections#synchronizedNavigableMap javadoc
Reviewed-by: martin, smarks, aturbanov
This commit is contained in:
parent
7987ad427b
commit
a06f46196a
@ -2928,7 +2928,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…
x
Reference in New Issue
Block a user