mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 03:43:21 +08:00
Use Threadlocal.remove instead of .set(null)
See https://github.com/spring-cloud/spring-cloud-sleuth/issues/27 for reference.
This commit is contained in:
parent
887c00e9fc
commit
e45b47565c
@ -1386,7 +1386,7 @@ public class SpringApplication {
|
||||
return action.get();
|
||||
}
|
||||
finally {
|
||||
applicationHook.set(null);
|
||||
applicationHook.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ class CharSequenceToObjectConverter implements ConditionalGenericConverter {
|
||||
return this.conversionService.canConvert(STRING, targetType);
|
||||
}
|
||||
finally {
|
||||
this.disable.set(null);
|
||||
this.disable.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user