Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8344246

Unnecessary Hashtable usage in EventSupport.notifiers

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • None
    • 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.

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

              Created:
              Updated: