Uploaded image for project: 'JSword'
  1. JSword
  2. JS-263

Replace EventListenerList with CopyOnWriteArrayList

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: o.c.common.util
    • Labels:
      None

      Description

      The o.c.c.util.EventListenerList is far more complicated than is needed. It allows for more than one type of listener to be in the list.

      CopyOnWriteArrayList provides the same of MT safety and removes the unneeded complexity.

      The added benefit is that external synchronization on the list can be removed. It probably didn't need to be there in the first place.

        Attachments

          Activity

            People

            • Assignee:
              dmsmith DM Smith
              Reporter:
              dmsmith DM Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: