Skip to content

Commit 1f35cc5

Browse files
committed
Polish contribution
See gh-25506
1 parent af8ab2e commit 1f35cc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-context/src/main/java/org/springframework/context/support/DefaultLifecycleProcessor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ private void startBeans(boolean autoStartupOnly) {
144144

145145
lifecycleBeans.forEach((beanName, bean) -> {
146146
if (!autoStartupOnly || (bean instanceof SmartLifecycle && ((SmartLifecycle) bean).isAutoStartup())) {
147-
148147
int phase = getPhase(bean);
149148
phases.computeIfAbsent(
150149
phase,
@@ -153,7 +152,7 @@ private void startBeans(boolean autoStartupOnly) {
153152
}
154153
});
155154
if (!phases.isEmpty()) {
156-
phases.forEach((key, value) -> value.start());
155+
phases.values().forEach(LifecycleGroup::start);
157156
}
158157
}
159158

0 commit comments

Comments
 (0)