Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1476

Use synchronise on a set created with Collections.synchronizedSet before iterating

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.9
    • 3.10
    • lang.*
    • None

    Description

      Placeholder for PR created in GitHub.

      Link to Java docs: https://docs.oracle.com/javase/9/docs/api/java/util/Collections.html#synchronizedSet-java.util.Set-

      >It is imperative that the user manually synchronize on the returned collection when traversing it via Iterator, Spliterator or Stream:

      Attachments

        Activity

          People

            kinow Bruno P. Kinoshita
            kinow Bruno P. Kinoshita
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: