Menu

#307 Use WeakHashMap when JSON store is enabled

open
nobody
None
2018-12-17
2018-12-17
Anonymous
No

Originally created by: doxavore

TwitterObjectFactory currently stores the raw JSON responses in a ThreadLocal<Map> backed by a HashMap.

As a precaution against leaking these (particularly helpful in more complex threading scenarios), is there any reason we couldn't make this a WeakHashMap?

Discussion


Log in to post a comment.