Polish contribution

See gh-25506
This commit is contained in:
Sam Brannen
2020-08-10 14:17:04 +02:00
parent af8ab2e3a8
commit 1f35cc5cae

View File

@@ -144,7 +144,6 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
lifecycleBeans.forEach((beanName, bean) -> {
if (!autoStartupOnly || (bean instanceof SmartLifecycle && ((SmartLifecycle) bean).isAutoStartup())) {
int phase = getPhase(bean);
phases.computeIfAbsent(
phase,
@@ -153,7 +152,7 @@ public class DefaultLifecycleProcessor implements LifecycleProcessor, BeanFactor
}
});
if (!phases.isEmpty()) {
phases.forEach((key, value) -> value.start());
phases.values().forEach(LifecycleGroup::start);
}
}