最近我看到一段代码,该代码使用 ThreadLocal 对象并在其中保留了 ConcurrentHashMap 。
ThreadLocal
ConcurrentHashMap
这是否有逻辑/好处,还是有多余?