File tree 1 file changed +1
-1
lines changed
framework-docs/modules/ROOT/pages/core/aop-api
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ incorrectly using them in multi-threaded and multi-classloader environments. You
222
222
should always consider wrapping a `ThreadLocal` in some other class and never directly use
223
223
the `ThreadLocal` itself (except in the wrapper class). Also, you should
224
224
always remember to correctly set and unset (where the latter simply involves a call to
225
- `ThreadLocal.set(null )`) the resource local to the thread. Unsetting should be done in
225
+ `ThreadLocal.remove( )`) the resource local to the thread. Unsetting should be done in
226
226
any case, since not unsetting it might result in problematic behavior. Spring's
227
227
`ThreadLocal` support does this for you and should always be considered in favor of using
228
228
`ThreadLocal` instances without other proper handling code.
You can’t perform that action at this time.
0 commit comments