mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8303214: Typo in java.util.Collections#synchronizedNavigableMap javadoc
Reviewed-by: martin, smarks, aturbanov
(cherry picked from commit a06f46196a)
This commit is contained in:
committed by
Vitaly Provodin
parent
095cc7b743
commit
abb0d42e3e
@@ -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());
|
||||
* }
|
||||
|
||||
Reference in New Issue
Block a user