File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ Race conditions
81
81
] ( #cache-invalidation-race )
82
82
- [ Iteration, Stream pipeline, or copying a ` Collections.synchronized*() ` collection is protected
83
83
by the lock?] ( #synchronized-collection-iter )
84
- - [ A synchronized collection is passed into ` addAll ()` , ` removeAll ()` , or ` putAll ()` under the
85
- lock?] ( #synchronized-collection-iter )
84
+ - [ A synchronized collection is passed into ` containsAll ()` , ` addAll ()` , ` removeAll ()` , or
85
+ ` putAll() ` under the lock?] ( #synchronized-collection-iter )
86
86
87
87
Testing
88
88
- [ Unit tests for thread-safe classes are multi-threaded?] ( #multi-threaded-tests )
@@ -725,7 +725,7 @@ https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Collectio
725
725
for examples and details.
726
726
727
727
This also applies to passing synchronized collections into:
728
- - Copy constructors of other collections, e. g. ` new ArrayList<>(synchronizedList ) `
728
+ - Copy constructors of other collections, e. g. ` new ArrayList<>(synchronizedColl ) `
729
729
- Static factory methods of other collections, e. g. ` List.copyOf() ` , ` Set.copyOf() ` ,
730
730
` ImmutableMap.copyOf() `
731
731
- Bulk methods on other collections:
You can’t perform that action at this time.
0 commit comments