Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,18 @@ public ContextRegistry registerThreadLocalAccessor(ThreadLocalAccessor<?> access
* Removes a {@link ThreadLocalAccessor}.
* @param key under which the accessor got registered
* @return {@code true} when accessor got successfully removed
* @deprecated use {@link ContextRegistry#removeThreadLocalAccessorForKey(Object)} instead
*/
public boolean removeThreadLocalAccessor(String key) {
return removeThreadLocalAccessorForKey(key);
}

/**
* Removes a {@link ThreadLocalAccessor}.
* @param key under which the accessor got registered
* @return {@code true} when accessor got successfully removed
*/
public boolean removeThreadLocalAccessorForKey(Object key) {
for (ThreadLocalAccessor<?> existing : this.threadLocalAccessors) {
if (existing.key().equals(key)) {
return this.threadLocalAccessors.remove(existing);
Expand Down