ably-java icon indicating copy to clipboard operation
ably-java copied to clipboard

Hide channels hashmap methods

Open SimonWoolf opened this issue 6 years ago • 0 comments

A customer had been calling channels.clear() in an on-auth-updated listener, for reasons that remain unclear. Predictably this caused problems.

Might be a good idea to hide the actual hashmap away in a private member (instead of Channels extending HashMap), and remove the temptation of the forbidden fruit of HashMap methods being dangled in front of the user by their IDE's autocomplete

┆Issue is synchronized with this Jira Task by Unito

SimonWoolf avatar Mar 04 '19 22:03 SimonWoolf