Skip to content

Commit 394d926

Browse files
committed
Add a note about toString() to RC.3
1 parent 37cf72e commit 394d926

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,9 @@ concurrently doesn't solve this problem.** If the collection is relatively small
555555
copied entirely, or a copy-on-write collection (see [Sc.3](#non-blocking-collections)) should be
556556
used instead of a non-thread-safe collection.
557557

558+
Note that calling `toString()` on a collection (e. g. in a logging statement) implicitly iterates
559+
over it.
560+
558561
Like the previous item, this one applies to growing ArrayLists too.
559562

560563
This item applies even to synchronized collections: see [RC.10](#synchronized-collection-iter) for

0 commit comments

Comments
 (0)