We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af8ab2e commit 1f35cc5Copy full SHA for 1f35cc5
spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java
@@ -144,7 +144,6 @@ private void startBeans(boolean autoStartupOnly) {
144
145
lifecycleBeans.forEach((beanName, bean) -> {
146
if (!autoStartupOnly || (bean instanceof SmartLifecycle && ((SmartLifecycle) bean).isAutoStartup())) {
147
-
148
int phase = getPhase(bean);
149
phases.computeIfAbsent(
150
phase,
@@ -153,7 +152,7 @@ private void startBeans(boolean autoStartupOnly) {
153
152
}
154
});
155
if (!phases.isEmpty()) {
156
- phases.forEach((key, value) -> value.start());
+ phases.values().forEach(LifecycleGroup::start);
157
158
159
0 commit comments