Skip to content

Commit

Permalink
8303214: Typo in java.util.Collections#synchronizedNavigableMap javadoc
Browse files Browse the repository at this point in the history
Reviewed-by: martin, smarks, aturbanov
  • Loading branch information
nbauma109 authored and Andrey Turbanov committed Mar 28, 2023
1 parent 7987ad4 commit a06f461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/util/Collections.java
Original file line number Diff line number Diff line change
Expand Up @@ -2928,7 +2928,7 @@ public K lastKey() {
* 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());
* }
Expand Down

1 comment on commit a06f461

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.