Re: RFR: 8344246: Unnecessary Hashtable usage in EventSupport.notifiers

2024-12-08 Thread Andrey Turbanov
On Tue, 5 Nov 2024 08:28:10 GMT, Andrey Turbanov wrote: > The field `com.sun.jndi.ldap.EventSupport#notifiers` is always accessed under > `lock`. It means extra synchronization from `Hashtable` is not needed. > Subtle difference in Hashtable vs Hashmap behavior is that Hashtable doesn't > allow

RFR: 8344246: Unnecessary Hashtable usage in EventSupport.notifiers

2024-11-14 Thread Andrey Turbanov
The field `com.sun.jndi.ldap.EventSupport#notifiers` is always accessed under `lock`. It means extra synchronization from `Hashtable` is not needed. Subtle difference in Hashtable vs Hashmap behavior is that Hashtable doesn't allow `null` keys and `null` values. I've checked all usages of it - on