Apply ThreadLocal#remove() to pre-instantiation threads
See gh-13410 See gh-32874
This commit is contained in:
@@ -1030,7 +1030,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
||||
}
|
||||
}
|
||||
finally {
|
||||
this.preInstantiationThread.set(null);
|
||||
this.preInstantiationThread.remove();
|
||||
}
|
||||
if (!futures.isEmpty()) {
|
||||
try {
|
||||
@@ -1100,7 +1100,7 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
||||
throw ex;
|
||||
}
|
||||
finally {
|
||||
this.preInstantiationThread.set(null);
|
||||
this.preInstantiationThread.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user