Unnecessary Hashtable usage in EventSupport.notifiers

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • None
    • Affects Version/s: None
    • Component/s: core-libs

      The field 'com.sun.jndi.ldap.EventSupport#notifiers' is always accessed under 'lock'. It means extra synchronization from 'Hashtable' is not needed.
      All usages of the field - only non-null keys and values are put into it. So, replacement is safe.

            Assignee:
            Andrey Turbanov
            Reporter:
            Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: