Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
Description
The current implementation tries to emulate ThreadLocal with a Map and a lock. Using ThreadLocal directly has the advantage of making
the code simpler and enabling garbage collection for cached instances when the belonging thread ends.