mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-30 15:52:15 +00:00
SEC-1578: Use ThreadLocal.remove() instead of ThreadLocal.set(null)
This commit is contained in:
parent
e69b981c72
commit
8249492ce9
@ -34,7 +34,7 @@ final class InheritableThreadLocalSecurityContextHolderStrategy implements Secur
|
|||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
||||||
|
|
||||||
public void clearContext() {
|
public void clearContext() {
|
||||||
contextHolder.set(null);
|
contextHolder.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
public SecurityContext getContext() {
|
public SecurityContext getContext() {
|
||||||
|
@ -34,7 +34,7 @@ final class ThreadLocalSecurityContextHolderStrategy implements SecurityContextH
|
|||||||
//~ Methods ========================================================================================================
|
//~ Methods ========================================================================================================
|
||||||
|
|
||||||
public void clearContext() {
|
public void clearContext() {
|
||||||
contextHolder.set(null);
|
contextHolder.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
public SecurityContext getContext() {
|
public SecurityContext getContext() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user