mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8303214: Typo in java.util.Collections#synchronizedNavigableMap javadoc
Reviewed-by: martin, smarks, aturbanov
This commit is contained in:
parent
7987ad427b
commit
a06f46196a
1 changed files with 1 additions and 1 deletions
|
@ -2928,7 +2928,7 @@ public class Collections {
|
||||||
* Set s2 = m2.keySet(); // Needn't be in synchronized block
|
* Set s2 = m2.keySet(); // Needn't be in synchronized block
|
||||||
* ...
|
* ...
|
||||||
* synchronized (m) { // Synchronizing on m, not m2 or s2!
|
* 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())
|
* while (i.hasNext())
|
||||||
* foo(i.next());
|
* foo(i.next());
|
||||||
* }
|
* }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue