We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27985b1 commit 5a27544Copy full SHA for 5a27544
spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java
@@ -1030,7 +1030,7 @@ public void preInstantiateSingletons() throws BeansException {
1030
}
1031
1032
finally {
1033
- this.preInstantiationThread.set(null);
+ this.preInstantiationThread.remove();
1034
1035
if (!futures.isEmpty()) {
1036
try {
@@ -1100,7 +1100,7 @@ private void instantiateSingletonInBackgroundThread(String beanName) {
1100
throw ex;
1101
1102
1103
1104
1105
1106
0 commit comments